org.azzyzt.jee.runtime.dto
Class Error
java.lang.Object
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()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Error
public Error()
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)