org.jsmpp.extra
Class ProcessRequestException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jsmpp.extra.ProcessRequestException
All Implemented Interfaces:
java.io.Serializable

public class ProcessRequestException
extends java.lang.Exception

Thrown if there is an error occur when processing request.

Since:
1.0
Version:
1.0
Author:
uudashr
See Also:
Serialized Form

Constructor Summary
ProcessRequestException(java.lang.String message, int errorCode)
          Construct with specified message and error code.
ProcessRequestException(java.lang.String message, int errorCode, java.lang.Throwable cause)
          Construct with specified message, error code, and cause.
 
Method Summary
 int getErrorCode()
          Get the error code (or known as command_status).
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessRequestException

public ProcessRequestException(java.lang.String message,
                               int errorCode)
Construct with specified message and error code.

Parameters:
message - is the detail message.
errorCode - is the error code (or known as command_status).

ProcessRequestException

public ProcessRequestException(java.lang.String message,
                               int errorCode,
                               java.lang.Throwable cause)
Construct with specified message, error code, and cause.

Parameters:
message - is the detail message.
errorCode - is the error code (or known as command_status).
cause - is the parent cause.
Method Detail

getErrorCode

public int getErrorCode()
Get the error code (or known as command_status).

Returns:
the error code.