|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.plugin.rest.entity.ErrorEntity
public class ErrorEntity
Represents an error. All errors returned from REST resources should have the error entity in the response.
Nested Class Summary | |
---|---|
static class |
ErrorEntity.ErrorReason
|
Constructor Summary | |
---|---|
ErrorEntity(ErrorEntity.ErrorReason reason,
java.lang.String message)
Constructs an error entity. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
|
ErrorEntity.ErrorReason |
getReason()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorEntity(ErrorEntity.ErrorReason reason, java.lang.String message)
reason
- reason for the error.message
- messageMethod Detail |
---|
public ErrorEntity.ErrorReason getReason()
public java.lang.String getMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |