public enum PApplicationExceptionType extends Enum<PApplicationExceptionType> implements PEnumValue<PApplicationExceptionType>
Modifier and Type | Class and Description |
---|---|
static class |
PApplicationExceptionType._Builder |
Enum Constant and Description |
---|
BAD_SEQUENCE_ID
The response came back with a non-matching sequence ID.
|
INTERNAL_ERROR
The service handler or client handler experienced internal problem.
|
INVALID_MESSAGE_TYPE
The service call type does not make sense, or is plain wrong, e.g.
|
INVALID_PROTOCOL
The requested protocol (or version) is not supported.
|
INVALID_TRANSFORM
NOTE: This value is apparently not in use in thrift.
|
MISSING_RESULT
The response did not have a defined non-null result.
|
PROTOCOL_ERROR
Serialization or deserialization failed or the deserialized content was
not valid for the requested message.
|
UNKNOWN
Unknown or unidentified exception, should usually not be uased.
|
UNKNOWN_METHOD
There is no such method defined on the service.
|
UNSUPPORTED_CLIENT_TYPE
NOTE: This value is apparently not in use in thrift.
|
WRONG_METHOD_NAME
The response came back with a non-matching method name.
|
Modifier and Type | Field and Description |
---|---|
static PEnumDescriptor<PApplicationExceptionType> |
kDescriptor |
Modifier and Type | Method and Description |
---|---|
int |
asInteger() |
String |
asString() |
PEnumDescriptor<PApplicationExceptionType> |
descriptor() |
static PApplicationExceptionType |
forName(String name) |
static PApplicationExceptionType |
forValue(int value) |
String |
getName() |
int |
getValue() |
static PEnumDescriptorProvider<PApplicationExceptionType> |
provider() |
static PApplicationExceptionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PApplicationExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
compareTo
public static final PApplicationExceptionType UNKNOWN
public static final PApplicationExceptionType UNKNOWN_METHOD
public static final PApplicationExceptionType INVALID_MESSAGE_TYPE
public static final PApplicationExceptionType WRONG_METHOD_NAME
public static final PApplicationExceptionType BAD_SEQUENCE_ID
public static final PApplicationExceptionType MISSING_RESULT
NOTE: This is the default behavior from thrift, and we may need to keep it this way as long as thrift compatibility is expected.
public static final PApplicationExceptionType INTERNAL_ERROR
public static final PApplicationExceptionType PROTOCOL_ERROR
NOTE: In providence this is valid for server (processor) side serialization errors.
public static final PApplicationExceptionType INVALID_TRANSFORM
public static final PApplicationExceptionType INVALID_PROTOCOL
public static final PApplicationExceptionType UNSUPPORTED_CLIENT_TYPE
public static final PEnumDescriptor<PApplicationExceptionType> kDescriptor
public static PApplicationExceptionType[] values()
for (PApplicationExceptionType c : PApplicationExceptionType.values()) System.out.println(c);
public static PApplicationExceptionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface PEnumValue<PApplicationExceptionType>
public String getName()
getName
in interface PEnumValue<PApplicationExceptionType>
public int asInteger()
asInteger
in interface net.morimekta.util.Numeric
public String asString()
asString
in interface net.morimekta.util.Stringable
public static PApplicationExceptionType forValue(int value)
public static PApplicationExceptionType forName(String name)
public PEnumDescriptor<PApplicationExceptionType> descriptor()
descriptor
in interface PValue<PApplicationExceptionType>
public static PEnumDescriptorProvider<PApplicationExceptionType> provider()
Copyright © 2015–2016 morimekta.net. All rights reserved.