Class ErrorEntity
java.lang.Object
com.atlassian.crowd.plugin.rest.entity.ErrorEntity
- All Implemented Interfaces:
Serializable
Represents an error. All errors returned from REST resources should have the error entity in the response.
- Since:
- v2.1
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionErrorEntity(ErrorEntity.ErrorReason reason, String message) Constructs an error entity. -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorEntityCreates appropriate error entity from the given exception.
-
Constructor Details
-
ErrorEntity
Constructs an error entity.- Parameters:
reason- reason for the error.message- message
-
-
Method Details
-
getReason
-
getMessage
-
of
Creates appropriate error entity from the given exception.- Parameters:
exception- exception from which the ErrorEntity has to be created.- Returns:
- ErrorEntity.
-