| java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException javax.microedition.sip.SipException
All known Subclasses: gov.nist.siplite.TransactionUnavailableException, gov.nist.siplite.PeerUnavailableException, gov.nist.siplite.TransactionAlreadyExistsException, gov.nist.siplite.ObjectInUseException, gov.nist.siplite.TransportNotSupportedException, gov.nist.siplite.TooManyListenersException,
SipException | public class SipException extends IOException (Code) | | This is an exception class for SIP specific errors.
See Also: JSR180 See Also: spec, v 1.0.1, p 63-66 |
Constructor Summary | |
public | SipException(byte errorCode) Construct SipException with error code.
Parameters: errorCode - - error code. | public | SipException(java.lang.String message, byte errorCode) Construct SipException with textual message and error code.
Parameters: message - - error message. Parameters: errorCode - - error code. |
DIALOG_UNAVAILABLE | final public static byte DIALOG_UNAVAILABLE(Code) | | Thrown for example when SIP connection does not belong to any Dialog.
|
GENERAL_ERROR | final public static byte GENERAL_ERROR(Code) | | Other SIP error
|
INVALID_MESSAGE | final public static byte INVALID_MESSAGE(Code) | | The message to be sent has invalid format.
|
INVALID_OPERATION | final public static byte INVALID_OPERATION(Code) | | The system does not allow particular operation. NOTICE! This error does
not handle security exceptions.
|
INVALID_STATE | final public static byte INVALID_STATE(Code) | | Method call not allowed, because of wrong state in SIP connection.
|
TRANSACTION_UNAVAILABLE | final public static byte TRANSACTION_UNAVAILABLE(Code) | | System can not open any new transactions.
|
TRANSPORT_NOT_SUPPORTED | final public static byte TRANSPORT_NOT_SUPPORTED(Code) | | The requested transport is not supported
|
UNKNOWN_LENGTH | final public static byte UNKNOWN_LENGTH(Code) | | Used when for example Content-Length is not set before filling
the message body
|
UNKNOWN_TYPE | final public static byte UNKNOWN_TYPE(Code) | | Used when for example Content-Type is not set before filling
the message body.
|
SipException | public SipException(byte errorCode)(Code) | | Construct SipException with error code.
Parameters: errorCode - - error code. If the error code is none ofthe specifiedcodes the Exception is initialized with default GENERAL_ERROR. |
SipException | public SipException(java.lang.String message, byte errorCode)(Code) | | Construct SipException with textual message and error code.
Parameters: message - - error message. Parameters: errorCode - - error code. If the error code is none ofthe specifiedcodes the Exception is initialized with default GENERAL_ERROR. |
getErrorCode | public byte getErrorCode()(Code) | | Gets the error code
error code |
|
|