com.unipro.smlib
Class MobileException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.unipro.smlib.MobileException
- All Implemented Interfaces:
- java.io.Serializable
- public class MobileException
- extends java.lang.Exception
Occurs when connected mobile phone cannot execute some AT commands, which are necessary for
sending or receiving of the messages and ACKs. Mobile phone returned incorrect response after sending
of AT command. See more: 'AT' actions.
Method init() of SmsManager throws MobileException when:
- It is unable to initialize GSM PHASE TWO Mode
- It is unable to initialize PDU Format Mode
Additional information about SMLib exceptions: SMLib exceptions.
- See Also:
- Serialized Form
Constructor Summary |
MobileException(java.lang.String er,
int erCode)
Creates new MobileException with the specified message about error. |
Method Summary |
java.lang.String |
getMessage()
Returns the error message string of this exception. |
int |
getStatus()
Returns exception status. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MOBILE_PDU_INCOMPATIBLE
public static final int MOBILE_PDU_INCOMPATIBLE
- One of MobileException statuses. Mobile is pdu incompatible.
MobileException
public MobileException(java.lang.String er,
int erCode)
- Creates new MobileException with the specified message about error.
- Parameters:
er
- - error message
getStatus
public int getStatus()
- Returns exception status.
- Returns:
- status. See MOBILE_XXX constants
getMessage
public java.lang.String getMessage()
- Returns the error message string of this exception.
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- error string message.