org.webbitserver
Class WebbitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.webbitserver.WebbitException
- All Implemented Interfaces:
- Serializable
public class WebbitException
- extends RuntimeException
Marker for any exceptions in the Webbit stack.
This is used to ensure the exceptions we report to Thread.UncaughtExceptionHandlers are well
documented and make it obvious that an error occurred in Webbit. This is particularly useful for projects
that make heavy use of Netty in other libraries, since most of our exceptions come out of the Netty stack,
and don't include Webbit code in their stack traces.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
WebbitException
public WebbitException(String message)
WebbitException
public WebbitException(String message,
Throwable cause)
WebbitException
public WebbitException(Throwable cause)
fromExceptionEvent
public static WebbitException fromExceptionEvent(org.jboss.netty.channel.ExceptionEvent e)
fromException
public static WebbitException fromException(Throwable t,
org.jboss.netty.channel.Channel channel)
Copyright © 2012. All Rights Reserved.