|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.web.bindery.requestfactory.shared.ServerFailure
public class ServerFailure
Describes a request failure on the server.
This error reporting mechanism is adequate at best. When RequestFactory is extended to handle polymorphic types, this class will likely be replaced with something more expressive.
Constructor Summary | |
---|---|
ServerFailure()
Constructs a ServerFailure with null properties. |
|
ServerFailure(java.lang.String message)
Constructs a fatal ServerFailure with null type and null stack trace. |
|
ServerFailure(java.lang.String message,
java.lang.String exceptionType,
java.lang.String stackTraceString,
boolean fatal)
Constructs a ServerFailure object. |
Method Summary | |
---|---|
java.lang.String |
getExceptionType()
Return the exception type. |
java.lang.String |
getMessage()
Return the failure message. |
RequestContext |
getRequestContext()
Returns the RequestContext that triggered the ServerFailure. |
java.lang.String |
getStackTraceString()
Return the failure stack trace. |
boolean |
isFatal()
Return true if this is a fatal error. |
void |
setRequestContext(RequestContext requestContext)
Sets the RequestContext to return via getRequestContext() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerFailure()
public ServerFailure(java.lang.String message)
public ServerFailure(java.lang.String message, java.lang.String exceptionType, java.lang.String stackTraceString, boolean fatal)
message
- a String containing the failure messageexceptionType
- a String containing the exception typestackTraceString
- a String containing the stack traceMethod Detail |
---|
public java.lang.String getExceptionType()
public java.lang.String getMessage()
public RequestContext getRequestContext()
public java.lang.String getStackTraceString()
public boolean isFatal()
Receiver.onFailure(com.google.web.bindery.requestfactory.shared.ServerFailure)
throws a runtime exception for fatal failures.
public void setRequestContext(RequestContext requestContext)
getRequestContext()
.
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |