org.jsmpp.extra.ProcessRequestException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsmpp Show documentation
Show all versions of jsmpp Show documentation
The Java implementation of SMPP protocol (currently supports SMPP v 3.4)
The newest version!
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy