org.webbitserver
Class WebbitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
WebbitException(String message)
           
WebbitException(String message, Throwable cause)
           
WebbitException(Throwable cause)
           
 
Method Summary
static WebbitException fromException(Throwable t, org.jboss.netty.channel.Channel channel)
           
static WebbitException fromExceptionEvent(org.jboss.netty.channel.ExceptionEvent e)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebbitException

public WebbitException(String message)

WebbitException

public WebbitException(String message,
                       Throwable cause)

WebbitException

public WebbitException(Throwable cause)
Method Detail

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.