com.atlassian.crowd.plugin.rest.entity
Class ApplicationErrorEntity

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.entity.ApplicationErrorEntity

public class ApplicationErrorEntity
extends Object

Represents an error. All errors returned from REST resources should have the error entity in the response.

Since:
2.2

Nested Class Summary
static class ApplicationErrorEntity.ErrorReason
           
 
Constructor Summary
ApplicationErrorEntity(ApplicationErrorEntity.ErrorReason reason, String message)
          Constructs an error entity.
 
Method Summary
 String getMessage()
           
 ApplicationErrorEntity.ErrorReason getReason()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationErrorEntity

public ApplicationErrorEntity(ApplicationErrorEntity.ErrorReason reason,
                              String message)
Constructs an error entity.

Parameters:
reason - reason for the error.
message - message
Method Detail

getReason

public ApplicationErrorEntity.ErrorReason getReason()

getMessage

public String getMessage()


Copyright © 2012 Atlassian. All Rights Reserved.