|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException javax.microedition.sip.SipException
This is an exception class for SIP specific errors. The exception includes free format textual error message and error code to categorize the error.
Field Summary | |
static byte |
DIALOG_UNAVAILABLE
Thrown for example when SIP connection does not belong to any Dialog. |
static byte |
GENERAL_ERROR
Other SIP error |
static byte |
INVALID_MESSAGE
The message to be sent has invalid format. |
static byte |
INVALID_OPERATION
The system does not allow particular operation. |
static byte |
INVALID_STATE
Method call not allowed, because of wrong state in SIP connection. |
static byte |
TRANSACTION_UNAVAILABLE
System can not open any new transactions. |
static byte |
TRANSPORT_NOT_SUPPORTED
The requested transport is not supported |
static byte |
UNKNOWN_LENGTH
Used when for example Content-Length is not set before filling the message body |
static byte |
UNKNOWN_TYPE
Used when for example Content-Type is not set before filling the message body. |
Constructor Summary | |
SipException(byte errorCode)
Construct SipException with error code. |
|
SipException(java.lang.String message,
byte errorCode)
Construct SipException with textual message and error code. |
Method Summary | |
byte |
getErrorCode()
Gets the error code |
Methods inherited from class java.lang.Throwable |
getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte TRANSPORT_NOT_SUPPORTED
SipConnection
,
Constant Field Valuespublic static final byte DIALOG_UNAVAILABLE
SipConnection.getDialog()
,
Constant Field Valuespublic static final byte UNKNOWN_TYPE
SipConnection.openContentOutputStream()
,
Constant Field Valuespublic static final byte UNKNOWN_LENGTH
SipConnection.openContentOutputStream()
,
Constant Field Valuespublic static final byte INVALID_STATE
SipConnection
,
SipClientConnection
,
SipServerConnection
,
Constant Field Valuespublic static final byte INVALID_OPERATION
SipConnection
,
SipClientConnection
,
SipServerConnection
,
Constant Field Valuespublic static final byte TRANSACTION_UNAVAILABLE
SipConnection
,
SipConnectionNotifier.acceptAndOpen()
,
Constant Field Valuespublic static final byte INVALID_MESSAGE
SipConnection.send()
,
Constant Field Valuespublic static final byte GENERAL_ERROR
Constructor Detail |
public SipException(byte errorCode)
errorCode
- error code. If the error code is none of the specified codes
the Exception is initialized with default GENERAL_ERROR.public SipException(java.lang.String message, byte errorCode)
message
- error message.errorCode
- error code. If the error code is none of the specified codes
the Exception is initialized with default GENERAL_ERROR.Method Detail |
public byte getErrorCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |