com.unipro.smlib
Class SendException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.unipro.smlib.SendException
- All Implemented Interfaces:
- java.io.Serializable
- public class SendException
- extends java.lang.Exception
Method sendMessage() of SmsManager throws this exception when there is an error of
sending message (Problems with 'W' connection).
Exception occurs while sending message due to CMS Errors (see CMS ERROR):
For example if you have no money on your account to pay for SMS or network is unachievable.
To determinate the problem call getLocalizedMessage() method.
Additional information about SMLib exceptions: SMLib exceptions.
- See Also:
- Serialized Form
Constructor Summary |
SendException(java.lang.String er,
java.lang.String locErr,
int CMS)
Creates new SendException with the specified error message and CMS ERROR. |
Method Summary |
java.lang.String |
getLocalizedMessage()
Returns the detail message about CMS ERROR. |
java.lang.String |
getMessage()
Returns the error message. |
int |
getStatus()
Gets CMS ERROR code. |
java.lang.String |
toString()
Returns a String object representing the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SendException
public SendException(java.lang.String er,
java.lang.String locErr,
int CMS)
- Creates new SendException with the specified error message and CMS ERROR.
- Parameters:
er
- error messagelocErr
- CMS ERROR
getStatus
public int getStatus()
- Gets CMS ERROR code.
- Returns:
- CMS ERROR code (see CMS ERROR).
getMessage
public java.lang.String getMessage()
- Returns the error message.
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- error message string.
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Returns the detail message about CMS ERROR.
- Overrides:
getLocalizedMessage
in class java.lang.Throwable
- Returns:
- the detail message string about CMS ERROR.
toString
public java.lang.String toString()
- Returns a String object representing the exception.
- Overrides:
toString
in class java.lang.Throwable
- Returns:
- a string representation of the value of this object.