org.ferris.net
Class NetException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NetException
public NetException(NetExceptionCode code,
Object... messageParams)
NetException
public NetException(NetExceptionCode code,
Throwable throwable,
Object... messageParams)
getCode
public NetExceptionCode getCode()
Copyright © Jun 11, 2009-2011 The Ferris Foundation. All Rights Reserved.