org.azzyzt.jee.runtime.dto
Class Error

java.lang.Object
  extended by org.azzyzt.jee.runtime.dto.Error
All Implemented Interfaces:
java.io.Serializable

public class Error
extends java.lang.Object
implements java.io.Serializable

REST services generated by Azzyzt JEE Tools normally fail with HTTP status codes set according to the type of error. By supplying a special HTTP header, a REST client can coerce the server to fail with HTTP status code 200 OK and an error document instead of the normal response. This is the class, that is serialized to that error document.

See Also:
Serialized Form

Constructor Summary
Error()
           
 
Method Summary
 java.lang.String getContext()
           
 java.lang.String getMessage()
           
 java.lang.String getPresentationMessage()
           
 java.lang.String getPresentationType()
           
 java.lang.String getSource()
           
 java.lang.String getType()
           
 void setContext(java.lang.String context)
           
 void setMessage(java.lang.String message)
           
 void setPresentationMessage(java.lang.String presentationMessage)
           
 void setPresentationType(java.lang.String presentationType)
           
 void setSource(java.lang.String source)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Error

public Error()
Method Detail

getMessage

public java.lang.String getMessage()

setMessage

public void setMessage(java.lang.String message)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getSource

public java.lang.String getSource()

setSource

public void setSource(java.lang.String source)

getPresentationType

public java.lang.String getPresentationType()

setPresentationType

public void setPresentationType(java.lang.String presentationType)

getPresentationMessage

public java.lang.String getPresentationMessage()

setPresentationMessage

public void setPresentationMessage(java.lang.String presentationMessage)

getContext

public java.lang.String getContext()

setContext

public void setContext(java.lang.String context)