badcommandidexception.java
来自「SMPP(点到点短消息协议)的java实现」· Java 代码 · 共 64 行
JAVA
64 行
package ie.omk.smpp;/** * BadCommandIDException * * @author Oran Kelly * @version 1.0 */public class BadCommandIDException extends ie.omk.smpp.SMPPException { static final long serialVersionUID = -3690049503805565620L; // TODO: expected versus actual doesn't really make sense. Change // this exception. private final int expected; private final int actual; public BadCommandIDException() { expected = -1; actual = -1; } /** * Construct a new BadCommandIdException with specified message. */ public BadCommandIDException(String s) { super(s); expected = -1; actual = -1; } public BadCommandIDException(String msg, int id) { super(msg); actual = id; expected = -1; } /** * Construct a new BadCommandIdException. * * @param expected * The expected Command Id value. * @param actual * The actual Command Id value received. */ public BadCommandIDException(int expected, int actual) { this.expected = expected; this.actual = actual; } /** * @return the expected Command id value. */ public int getExpected() { return expected; } /** * Get the actual Command id value received. */ public int getActual() { return actual; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?