Package fr.gouv.vitam.metadata.client
Enum Class ErrorMessage
- All Implemented Interfaces:
Serializable
,Comparable<ErrorMessage>
,Constable
Error Message for Metadata
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionmessage when unit id parameter is blankmessage when data insert/update existsmessage when insert units query is nullmessage when internal server error occuredwhen invalid metadata valuesmessage when parsing an invalid jsonwhen missing select querymessage when querying data not foundmessage when select objectgroup query is nullmessage when select units query bulk is nullmessage when select units query is nullmessage when document size of unit is too largemessage when update object group query is nullmessage when insert units query bulk is nullmessage when update units query is null -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorMessage
Returns the enum constant of this class with the specified name.static ErrorMessage[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELECT_UNITS_QUERY_NULL
message when select units query is null -
SELECT_UNITS_QUERY_BULK_NULL
message when select units query bulk is null -
SELECT_OBJECT_GROUP_QUERY_NULL
message when select objectgroup query is null -
UPDATE_UNITS_QUERY_NULL
message when update units query is null -
UPDATE_UNITS_QUERY_BULK_NULL
message when insert units query bulk is null -
UPDATE_OBJECT_GROUP_QUERY_NULL
message when update object group query is null -
INSERT_UNITS_QUERY_NULL
message when insert units query is null -
BLANK_PARAM
message when unit id parameter is blank -
INTERNAL_SERVER_ERROR
message when internal server error occured -
SIZE_TOO_LARGE
message when document size of unit is too large -
INVALID_PARSE_OPERATION
message when parsing an invalid json -
INVALID_METADATA_VALUE
when invalid metadata values -
MISSING_SELECT_QUERY
when missing select query -
DATA_ALREADY_EXISTS
message when data insert/update exists -
NOT_FOUND
message when querying data not found
-
-
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
-
getMessage
- Returns:
- the associated message
-