@Generated(value="providence-maven-plugin") 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 |
findById(int id)
Find a value based in its ID
|
static PApplicationExceptionType |
findByName(String name)
Find a value based in its name
|
static PEnumDescriptorProvider<PApplicationExceptionType> |
provider() |
static PApplicationExceptionType |
valueForId(int id)
Get a value based in its ID
|
static PApplicationExceptionType |
valueForName(String name)
Get a value based in its name
|
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, valueOfgetId, getName, getValuecompareTopublic 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 asInteger()
asInteger in interface net.morimekta.util.Numeric@Nonnull public String asString()
asString in interface net.morimekta.util.Stringablepublic static PApplicationExceptionType findById(int id)
id - Id of valuepublic static PApplicationExceptionType findByName(String name)
name - Name of value@Nonnull public static PApplicationExceptionType valueForId(int id)
id - Id of valueIllegalArgumentException - If no value for id is found@Nonnull public static PApplicationExceptionType valueForName(String name)
name - Name of valueIllegalArgumentException - If no value for name is found, or null namepublic PEnumDescriptor<PApplicationExceptionType> descriptor()
descriptor in interface PEnumValue<PApplicationExceptionType>descriptor in interface PValue<PApplicationExceptionType>public static PEnumDescriptorProvider<PApplicationExceptionType> provider()
Copyright © 2015–2018 morimekta.net. All rights reserved.