|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--org.marc4j.marc.MarcException
MarcException
is thrown when an error occurs
while processing a record object.
Constructor Summary | |
MarcException()
Creates a new MarcException . |
|
MarcException(String message)
Creates a new MarcException with the
specified message. |
|
MarcException(String message,
Throwable ex)
Creates a new MarcException with the
specified message and an underlying root cause. |
Method Summary | |
Throwable |
getCause()
Return the root cause or null if there was no original exception. |
Throwable |
initCause(Throwable cause)
Sets the root cause of this exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MarcException()
Creates a new MarcException
.
public MarcException(String message)
Creates a new MarcException
with the
specified message.
message
- information about the cause of the exceptionpublic MarcException(String message, Throwable ex)
Creates a new MarcException
with the
specified message and an underlying root cause.
message
- information about the cause of the exceptionex
- the nested exception that caused this exceptionMethod Detail |
public Throwable getCause()
Return the root cause or null if there was no original exception.
getCause
in class Throwable
public Throwable initCause(Throwable cause)
Sets the root cause of this exception. This may
only be called once. Subsequent calls throw an
IllegalStateException
.
initCause
in class Throwable
cause
- the root cause of this exception
IllegalStateException
- if this method is called twice.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |