Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.sms.smpp
Class SMSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ie.ncl.sms.smpp.SMSException
All Implemented Interfaces:
Errors, java.io.Serializable
Direct Known Subclasses:
TemporarySMSException

public class SMSException
extends java.lang.Exception
implements Errors

This is the SMSException class. It allows the implementation of the SMPP protocol to throw exceptions by specifying the error code returned from the SMSC, which can later be 'stringified' by the application.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface ie.ncl.sms.smpp.Errors
SMPP_ACK_SEQUENCE, SMPP_CONNECTION_CLOSED, SMPP_GENERIC_NACK, SMPP_INTERNAL, SMPP_INTERRUPTED, SMPP_INVALID_FIELD, SMPP_INVALID_SEQUENCE, SMPP_LINK_QUERY_LENGTH, SMPP_LOCAL_CLOSE, SMPP_MISSING_ARGUMENT, SMPP_MUST_BIND_AS_RECEIVER, SMPP_MUST_BIND_AS_TRANSMITTER, SMPP_NO_DEFAULT_SMSC, SMPP_NOT_BOUND, SMPP_RALYBND, SMPP_RBINDFAIL, SMPP_RCNTADDCUST, SMPP_RCNTADDDL, SMPP_RCNTADDMEMBER, SMPP_RCNTCANMSG, SMPP_RCNTDELCUST, SMPP_RCNTDELDL, SMPP_RCNTDELMEMBER, SMPP_RCNTLISTDL, SMPP_RCNTMODCUST, SMPP_RCNTMODDL, SMPP_RCNTQRYCUST, SMPP_RCNTREPMSG, SMPP_RCNTRETRPARAM, SMPP_RCNTSUBDL, SMPP_RCNTVIEWDL, SMPP_RCUSTEXIST, SMPP_RCUSTNOTEXIST, SMPP_RDELIVERYFAILURE, SMPP_REMOTE_CLOSE, SMPP_RESPONSE_MISSING, SMPP_RINVADRLEN, SMPP_RINVBNDSTS, SMPP_RINVCAPCODELEN, SMPP_RINVCHANNELLEN, SMPP_RINVCITYLEN, SMPP_RINVCMDID, SMPP_RINVCMDLEN, SMPP_RINVCOVREGIONLEN, SMPP_RINVCUSTADRLEN, SMPP_RINVCUSTID, SMPP_RINVCUSTIDLEN, SMPP_RINVCUSTNAMLEN, SMPP_RINVDATFMT, SMPP_RINVDESCMEMBLEN, SMPP_RINVDESTFLAG, SMPP_RINVDLNAME, SMPP_RINVDSTADDRLEN, SMPP_RINVDSTADR, SMPP_RINVDSTNPI, SMPP_RINVDSTTON, SMPP_RINVESMCLASS, SMPP_RINVESMTYPE, SMPP_RINVEXPIRY, SMPP_RINVMDT, SMPP_RINVMDTLEN, SMPP_RINVMEMBERTYPE, SMPP_RINVMIDSER, SMPP_RINVMIN, SMPP_RINVMINLEN, SMPP_RINVMODOPT, SMPP_RINVMSGDIST, SMPP_RINVMSGDISTLEN, SMPP_RINVMSGID, SMPP_RINVMSGLEN, SMPP_RINVNUMDESTS, SMPP_RINVNUMMSGS, SMPP_RINVOPTPARAMVAL, SMPP_RINVOPTPARSTREAM, SMPP_RINVPAR, SMPP_RINVPARAMLEN, SMPP_RINVPARLEN, SMPP_RINVPASWD, SMPP_RINVPERMSG, SMPP_RINVPERMSGLEN, SMPP_RINVPGALERT, SMPP_RINVPGALERTLEN, SMPP_RINVPGCUSTID, SMPP_RINVPGCUSTIDLEN, SMPP_RINVPINLEN, SMPP_RINVPRIORMSG, SMPP_RINVPRIORMSGLEN, SMPP_RINVPRTFLG, SMPP_RINVREGDEL, SMPP_RINVREGDELLEN, SMPP_RINVREGDLVFLG, SMPP_RINVREPADDR, SMPP_RINVREPFLAG, SMPP_RINVRTDB, SMPP_RINVRTDBLEN, SMPP_RINVSCHED, SMPP_RINVSERTYP, SMPP_RINVSMUSER, SMPP_RINVSMUSERLEN, SMPP_RINVSRCADDRLEN, SMPP_RINVSRCADR, SMPP_RINVSRCNPI, SMPP_RINVSRCTON, SMPP_RINVSTATELEN, SMPP_RINVSUBREP, SMPP_RINVSYSIDSRV, SMPP_RINVSYSTYP, SMPP_RINVTERMCODELEN, SMPP_RINVZIPPOSTFIXLEN, SMPP_RINVZIPPREFIXLEN, SMPP_RLIMITEXCEED, SMPP_RMISSINGOPTPARAM, SMPP_RMSGQFUL, SMPP_ROK, SMPP_ROPTPARNOTALLWD, SMPP_RPREDEFMSGNOTFND, SMPP_RPROVNOTALLWD, SMPP_RQUERYFAIL, SMPP_RSERNOTSUP, SMPP_RSUBMITFAIL, SMPP_RSYSERR, SMPP_RTHROTTLEXCD, SMPP_RTXEXCEED, SMPP_RTXNOTALLOWD, SMPP_RUNKNOWNERR, SMPP_RX_P_APPN, SMPP_RX_R_APPN, SMPP_RX_T_APPN, SMPP_SMSC_NOT_RESPONDING, SMPP_UNKNOWN_ACK
 
Method Summary
 int getErrno()
          Return the error code of the exception.
 java.lang.String toString()
          Return a string indicating the error that occurred.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Return a string indicating the error that occurred. The specific error number may also be obtained (getErrno).

Overrides:
toString in class java.lang.Throwable
Returns:
A printable string representing the exception.
See Also:
getErrno()

getErrno

public int getErrno()
Return the error code of the exception. This is useful for handling different error conditions. For a list of error codes, see the smpp errors interface.

Returns:
The error number of the corresponding exception
See Also:
Errors

Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit