public enum Reason extends java.lang.Enum<Reason>
Call.getReason()
ProxyConfig.getError()
ErrorInfo.getReason()
Enum Constant | Description |
---|---|
AddressIncomplete |
Address incomplete.
|
BadEvent |
Bad event.
|
BadGateway |
Bad gateway.
|
Busy |
Phone line was busy.
|
Declined |
The call has been declined.
|
DoNotDisturb |
Do not disturb reason.
|
Forbidden |
Authentication failed due to bad credentials or resource forbidden.
|
Gone |
Resource no longer exists.
|
IOError |
Transport error: connection failures, disconnections etc...
|
MovedPermanently |
Resource moved permanently.
|
NoMatch |
Operation could not be executed by server or remote client because it didn't
have any context for it. |
None |
No reason has been set by the core.
|
NoResponse |
No response received from remote.
|
NotAcceptable |
Operation is rejected due to incompatible or unsupported media parameters.
|
NotAnswered |
The call was not answered in time (request timeout)
|
NotFound |
Destination of the call was not found.
|
NotImplemented |
Not implemented.
|
ServerTimeout |
Server timeout.
|
SessionIntervalTooSmall |
The received request contains a Session-Expires header field with a duration
below the minimum timer. |
TemporarilyUnavailable |
Temporarily unavailable.
|
Transferred |
The call has been transferred.
|
Unauthorized |
Operation is unauthorized because missing credential.
|
Unknown |
Unknown reason.
|
UnsupportedContent |
Unsupported content.
|
Modifier and Type | Field | Description |
---|---|---|
protected int |
mValue |
Modifier and Type | Method | Description |
---|---|---|
static Reason |
fromInt(int value) |
|
protected static Reason[] |
fromIntArray(int[] values) |
|
int |
toInt() |
|
protected static int[] |
toIntArray(Reason[] values) |
|
static Reason |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Reason[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Reason None
public static final Reason NoResponse
public static final Reason Forbidden
public static final Reason Declined
public static final Reason NotFound
public static final Reason NotAnswered
public static final Reason Busy
public static final Reason UnsupportedContent
public static final Reason BadEvent
public static final Reason IOError
public static final Reason DoNotDisturb
public static final Reason Unauthorized
public static final Reason NotAcceptable
public static final Reason NoMatch
public static final Reason MovedPermanently
public static final Reason Gone
public static final Reason TemporarilyUnavailable
public static final Reason AddressIncomplete
public static final Reason NotImplemented
public static final Reason BadGateway
public static final Reason SessionIntervalTooSmall
public static final Reason ServerTimeout
public static final Reason Unknown
public static final Reason Transferred
public static Reason[] values()
for (Reason c : Reason.values()) System.out.println(c);
public static Reason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Reason fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static Reason[] fromIntArray(int[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static int[] toIntArray(Reason[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()