|
||||||||||
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
public class 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 |
ALREADY_RESPONDED
The response can not be sent because the system has already sent a response. |
static byte |
DIALOG_UNAVAILABLE
Deprecated. |
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 SipConnection or SipRefreshHelper. |
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 |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, 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
The requested transport is not supported
SipConnection
,
Constant Field Valuespublic static final byte DIALOG_UNAVAILABLE
Thrown for example when SIP connection does not belong to any Dialog.
As of version 1.1.0 this error code is deprecated, as it was not used at all in previous versions.
public static final byte UNKNOWN_TYPE
Used when for example Content-Type is not set before filling the message body.
SipConnection.openContentOutputStream()
,
Constant Field Valuespublic static final byte UNKNOWN_LENGTH
Used when for example Content-Length is not set before filling the message body.
As of version 1.1.0 this error code is not thrown when sending, as the content length header is automatically set if not given by the user.
SipConnection.openContentOutputStream()
,
Constant Field Valuespublic static final byte INVALID_STATE
Method call not allowed, because of wrong state in SipConnection or SipRefreshHelper.
SipConnection
,
SipClientConnection
,
SipServerConnection
,
Constant Field Valuespublic static final byte INVALID_OPERATION
The system does not allow particular operation.
NOTICE! This error does not handle security exceptions.
SipConnection
,
SipClientConnection
,
SipServerConnection
,
Constant Field Valuespublic static final byte TRANSACTION_UNAVAILABLE
System can not open any new transactions.
SipConnection
,
SipConnectionNotifier.acceptAndOpen()
,
Constant Field Valuespublic static final byte INVALID_MESSAGE
The message to be sent has invalid format.
SipConnection.send()
,
Constant Field Valuespublic static final byte ALREADY_RESPONDED
The response can not be sent because the system has already sent a response.
SipConnection.send()
,
Constant Field Valuespublic static final byte GENERAL_ERROR
Other SIP error. An error that does not fit naturally into the other categories. For example this exception can be thrown from any method that throws SipException if there is an error within a native SIP stack serving the request.
Constructor Detail |
---|
public SipException(byte errorCode)
Construct SipException with error code.
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)
Construct SipException with textual message and error code.
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()
Gets the error code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |