|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.bristleback.server.bristle.exceptions.handlers.ExceptionHandlersContainer
public class ExceptionHandlersContainer
This class is a simple container for exception handlers.
Every occurring exception which can be handled and collected here is caused by user.
Actual list of exceptions possible to handle can be found in
ActionExceptionType enum.
| Constructor Summary | |
|---|---|
ExceptionHandlersContainer()
Creates a empty exception handlers container. |
|
| Method Summary | |
|---|---|
void |
addHandler(ActionExceptionType actionExceptionType,
ExceptionHandler handler)
Adds a handler to container. |
void |
invokeHandler(ActionExceptionType actionExceptionType,
org.jwebsocket.api.WebSocketConnector connector,
org.jwebsocket.token.Token token)
Invokes (if exists) handler for given exception type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionHandlersContainer()
| Method Detail |
|---|
public void invokeHandler(ActionExceptionType actionExceptionType,
org.jwebsocket.api.WebSocketConnector connector,
org.jwebsocket.token.Token token)
actionExceptionType - exception type to handle.connector - websocket connector.token - content of message sent by connector.
public void addHandler(ActionExceptionType actionExceptionType,
ExceptionHandler handler)
actionExceptionType - type of exception to handle.handler - exception handler implementation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||