⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 processrequestexception.java

📁 JSMPP Examples to send and receive sms from java via smpp protocol.
💻 JAVA
字号:
package org.jsmpp.extra;

/**
 * Thrown if there is an error occur when processing request.
 * 
 * @author uudashr
 * @version 1.0
 * @since 1.0
 * 
 */
public class ProcessRequestException extends Exception {
    private static final long serialVersionUID = -3633100382131187197L;

    private final int errorCode;

    /**
     * Construct with specified message and error code.
     * 
     * @param message is the detail message.
     * @param errorCode is the error code (or known as command_status).
     */
    public ProcessRequestException(String message, int errorCode) {
        super(message);
        this.errorCode = errorCode;
    }

    /**
     * Construct with specified message, error code, and cause.
     * 
     * @param message is the detail message.
     * @param errorCode is the error code (or known as command_status).
     * @param cause is the parent cause.
     */
    public ProcessRequestException(String message, int errorCode,
            Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    /**
     * Get the error code (or known as command_status).
     * 
     * @return the error code.
     */
    public int getErrorCode() {
        return errorCode;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -