Package net.morimekta.providence
Enum PApplicationExceptionType
- java.lang.Object
-
- java.lang.Enum<PApplicationExceptionType>
-
- net.morimekta.providence.PApplicationExceptionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PApplicationExceptionType>
,PEnumValue<PApplicationExceptionType>
,PValue<PApplicationExceptionType>
,net.morimekta.util.Numeric
,net.morimekta.util.Stringable
@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") public enum PApplicationExceptionType extends java.lang.Enum<PApplicationExceptionType> implements PEnumValue<PApplicationExceptionType>
General type of exception on the application level.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PApplicationExceptionType._Builder
-
Enum Constant Summary
Enum Constants Enum Constant 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.
-
Field Summary
Fields Modifier and Type Field Description static PEnumDescriptor<PApplicationExceptionType>
kDescriptor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
asInteger()
java.lang.String
asString()
PEnumDescriptor<PApplicationExceptionType>
descriptor()
static PApplicationExceptionType
findById(java.lang.Integer id)
Find a value based in its IDstatic PApplicationExceptionType
findByName(java.lang.String name)
Find a value based in its namestatic PEnumDescriptorProvider<PApplicationExceptionType>
provider()
static PApplicationExceptionType
valueForId(int id)
Get a value based in its IDstatic PApplicationExceptionType
valueForName(java.lang.String name)
Get a value based in its namestatic PApplicationExceptionType
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final PApplicationExceptionType UNKNOWN
Unknown or unidentified exception, should usually not be uased.
-
UNKNOWN_METHOD
public static final PApplicationExceptionType UNKNOWN_METHOD
There is no such method defined on the service.
-
INVALID_MESSAGE_TYPE
public static final PApplicationExceptionType INVALID_MESSAGE_TYPE
The service call type does not make sense, or is plain wrong, e.g. sending 'reply' or 'exception' as the request.
-
WRONG_METHOD_NAME
public static final PApplicationExceptionType WRONG_METHOD_NAME
The response came back with a non-matching method name.
-
BAD_SEQUENCE_ID
public static final PApplicationExceptionType BAD_SEQUENCE_ID
The response came back with a non-matching sequence ID.
-
MISSING_RESULT
public static final PApplicationExceptionType MISSING_RESULT
The response did not have a defined non-null 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.
-
INTERNAL_ERROR
public static final PApplicationExceptionType INTERNAL_ERROR
The service handler or client handler experienced internal problem.
-
PROTOCOL_ERROR
public static final PApplicationExceptionType PROTOCOL_ERROR
Serialization or deserialization failed or the deserialized content was not valid for the requested message.NOTE: In providence this is valid for server (processor) side serialization errors.
-
INVALID_TRANSFORM
public static final PApplicationExceptionType INVALID_TRANSFORM
NOTE: This value is apparently not in use in thrift.
-
INVALID_PROTOCOL
public static final PApplicationExceptionType INVALID_PROTOCOL
The requested protocol (or version) is not supported.
-
UNSUPPORTED_CLIENT_TYPE
public static final PApplicationExceptionType UNSUPPORTED_CLIENT_TYPE
NOTE: This value is apparently not in use in thrift.
-
-
Field Detail
-
kDescriptor
public static final PEnumDescriptor<PApplicationExceptionType> kDescriptor
-
-
Method Detail
-
values
public static PApplicationExceptionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PApplicationExceptionType c : PApplicationExceptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PApplicationExceptionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
asInteger
public int asInteger()
- Specified by:
asInteger
in interfacenet.morimekta.util.Numeric
-
asString
@Nonnull public java.lang.String asString()
- Specified by:
asString
in interfacenet.morimekta.util.Stringable
-
findById
@Nullable public static PApplicationExceptionType findById(java.lang.Integer id)
Find a value based in its ID- Parameters:
id
- Id of value- Returns:
- Value found or null
-
findByName
@Nullable public static PApplicationExceptionType findByName(java.lang.String name)
Find a value based in its name- Parameters:
name
- Name of value- Returns:
- Value found or null
-
valueForId
@Nonnull public static PApplicationExceptionType valueForId(int id)
Get a value based in its ID- Parameters:
id
- Id of value- Returns:
- Value found
- Throws:
java.lang.IllegalArgumentException
- If no value for id is found
-
valueForName
@Nonnull public static PApplicationExceptionType valueForName(@Nonnull java.lang.String name)
Get a value based in its name- Parameters:
name
- Name of value- Returns:
- Value found
- Throws:
java.lang.IllegalArgumentException
- If no value for name is found, or null name
-
descriptor
public PEnumDescriptor<PApplicationExceptionType> descriptor()
- Specified by:
descriptor
in interfacePEnumValue<PApplicationExceptionType>
- Specified by:
descriptor
in interfacePValue<PApplicationExceptionType>
-
provider
public static PEnumDescriptorProvider<PApplicationExceptionType> provider()
-
-