|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.service.ErrorMessage
public class ErrorMessage
Represents a single error message. Instances of this class will be sent to the client if the service invocation threw an Exception or if the specified service or operation does not exist or if the method parameters do not match those parameters required by the operation.
| Constructor Summary | |
|---|---|
ErrorMessage()
Creates an empty ErrorMessage. |
|
ErrorMessage(String message,
String exceptionType)
Creates a new error message. |
|
ErrorMessage(Throwable exception)
Creates a new error message. |
|
| Method Summary | |
|---|---|
String |
getExceptionType()
String representation of the exception type. |
String |
getMessage()
The error description. |
String |
getStacktrace()
Returns the stacktrace of this error. |
void |
setExceptionType(String exceptionType)
Sets the String representation of the exception type. |
void |
setMessage(String message)
Sets the error description. |
void |
setStacktrace(String stackTrace)
Sets the stacktrace of this error. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorMessage()
public ErrorMessage(Throwable exception)
exception - the cause of the error
public ErrorMessage(String message,
String exceptionType)
message - the error descriptionexceptionType - String representation of the type of exception| Method Detail |
|---|
public String getMessage()
public String getExceptionType()
public String getStacktrace()
public void setExceptionType(String exceptionType)
exceptionType - a String representation of the exception typepublic void setMessage(String message)
message - the error descriptionpublic void setStacktrace(String stackTrace)
stackTrace - the stacktrace of this errorpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||