java.lang.Object | |
↳ | com.google.gwt.requestfactory.shared.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a ServerFailure with null properties.
| |||||||||||
Constructs a fatal ServerFailure with null type and null stack trace.
| |||||||||||
Constructs a ServerFailure object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the exception type.
| |||||||||||
Return the failure message.
| |||||||||||
Return the failure stack trace.
| |||||||||||
Return true if this is a fatal error.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructs a ServerFailure with null properties.
Constructs a fatal ServerFailure with null type and null stack trace.
Constructs a ServerFailure object.
message | a String containing the failure message |
---|---|
exceptionType | a String containing the exception type |
stackTraceString | a String containing the stack trace |
Return the failure stack trace.
Return true if this is a fatal error. The default implementation of
onFailure(ServerFailure)
throws a runtime exception for fatal failures.