Enum Class PhoneError
- All Implemented Interfaces:
Serializable, Comparable<PhoneError>, Constable
Represents the type of phone error.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe automatic recording start failed.The destination phone was busy.A request failed due to custom call status #1.A request failed due to custom call status #2.A request failed due to custom call status #3.A request failed due to custom call status #4A request failed due to custom call status #5The destination phone was answered by a fax machine.The number dialed is invalid.No trunk lines are available.The destination phone was answered by a machine.The destination phone was answered by a modem.The destination agent did not answer.The destination phone did not answer.No value is assigned.The call cannot be recorded.The call failed because of a switch error.The call failed due to an unknown reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic PhoneErrorfromValue(int v) intvalue()static PhoneErrorReturns the enum constant of this class with the specified name.static PhoneError[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NoValue
No value is assigned. -
UnknownFailure
The call failed due to an unknown reason. -
SwitchError
The call failed because of a switch error. -
LineOverflow
No trunk lines are available. -
Busy
The destination phone was busy. -
NoAnswer
The destination phone did not answer. -
MachineAnswered
The destination phone was answered by a machine. -
InvalidNumber
The number dialed is invalid. -
Fax
The destination phone was answered by a fax machine. -
Modem
The destination phone was answered by a modem. -
RecordingStartFailed
The call cannot be recorded. -
AutomaticRecordingStartFailed
The automatic recording start failed. -
CustomCallStatus1
A request failed due to custom call status #1. -
CustomCallStatus2
A request failed due to custom call status #2. -
CustomCallStatus3
A request failed due to custom call status #3. -
CustomCallStatus4
A request failed due to custom call status #4 -
CustomCallStatus5
A request failed due to custom call status #5 -
NoAgent
The destination agent did not answer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value() -
fromValue
-