Class RequestErrorEvent

java.lang.Object
java.util.EventObject
cl.netswitch.lib.server.RequestErrorEvent
All Implemented Interfaces:
Serializable

public final class RequestErrorEvent extends EventObject
RequestErrorEvent is used to notify that a request error has occured.
See Also:
  • Constructor Details

    • RequestErrorEvent

      public RequestErrorEvent(ServerChannel channel, RequestEvent request, Throwable error)
      Constructs a new RequestErrorEvent 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 is null.
  • Method Details

    • getServerChannel

      public ServerChannel getServerChannel()
      Returns the server channel of this event.
      Returns:
      the server channel of this event.
    • getRequest

      public RequestEvent getRequest()
      Returns the request active at the time of the error.
      Returns:
      the request active at the time of the error.
    • getError

      public Throwable getError()
      Returns the error thrown while processing the request.
      Returns:
      the error thrown while processing the request.