java.lang.Object
java.util.EventObject
cl.netswitch.lib.server.RequestErrorEvent
- All Implemented Interfaces:
Serializable
RequestErrorEvent is used to notify that a request error has occured.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionRequestErrorEvent
(ServerChannel channel, RequestEvent request, Throwable error) Constructs a newRequestErrorEvent
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetError()
Returns the error thrown while processing the request.Returns the request active at the time of the error.Returns the server channel of this event.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
RequestErrorEvent
Constructs a newRequestErrorEvent
instance.- Parameters:
channel
- the object on which the event occurred.request
- the request active at the time of the error.error
- the error thrown while processing the request.- Throws:
NullPointerException
- if an argument isnull
.
-
-
Method Details
-
getServerChannel
Returns the server channel of this event.- Returns:
- the server channel of this event.
-
getRequest
Returns the request active at the time of the error.- Returns:
- the request active at the time of the error.
-
getError
Returns the error thrown while processing the request.- Returns:
- the error thrown while processing the request.
-