org.ferris.net
Class NetException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.ferris.net.NetException
All Implemented Interfaces:
Serializable

public class NetException
extends RuntimeException

Most exceptions, runtime or checked, are fatal and the purpose of this class is to wrap all checked exceptions and rethrow them as a runtime exception. The purpose of doing this is to prevent littering the code with useless try/catch blocks. Chances are if an exception is raised the application will not be able to recover.

Author:
Mike Remijan
See Also:
Serialized Form

Constructor Summary
NetException(NetExceptionCode code, Object... messageParams)
           
NetException(NetExceptionCode code, Throwable throwable, Object... messageParams)
           
 
Method Summary
 NetExceptionCode getCode()
           
 
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

NetException

public NetException(NetExceptionCode code,
                    Object... messageParams)

NetException

public NetException(NetExceptionCode code,
                    Throwable throwable,
                    Object... messageParams)
Method Detail

getCode

public NetExceptionCode getCode()


Copyright © Jun 11, 2009-2011 The Ferris Foundation. All Rights Reserved.