uk.org.blankaspect.nlf
Class NlfUncheckedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.org.blankaspect.nlf.NlfUncheckedException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- TerminatedException
public class NlfUncheckedException
- extends java.lang.RuntimeException
An object of this class signals that an exception has occurred in a method of a class in this package.
Like the checked NlfException
, this unchecked exception is constructed with an
identifier that maps to a detail message. It is intended as a more specific replacement for a runtime
exception such as java.lang.IllegalArgumentException
or java.lang.IllegalStateException
.
- Since:
- 1.0
- See Also:
NlfException
,
Serialized Form
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 |
NlfUncheckedException
public NlfUncheckedException(ExceptionId id)
- Constructs an
NlfUncheckedException
with the specified identifier. The identifier maps to a
message that is used as the exception's detail message in the constructor of java.lang.Exception
.
- Parameters:
id
- the exception identifier.- Since:
- 1.0
NlfUncheckedException
public NlfUncheckedException(ExceptionId id,
java.lang.Throwable cause)
- Constructs an
NlfUncheckedException
with the specified identifier and cause. The identifier
maps to a message that is used as the exception's detail message in the constructor of java.lang.Exception
.
- Parameters:
id
- the exception identifier.cause
- the java.lang.Throwable
that caused this exception.- Since:
- 1.0
getId
public ExceptionId getId()
- Returns the exception identifier.
- Returns:
- the exception identifier.
- Since:
- 1.0