org.marc4j.util
Class CharacterConverterLoaderException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.marc4j.util.CharacterConverterLoaderException
All Implemented Interfaces:
Serializable

public class CharacterConverterLoaderException
extends RuntimeException

A CharacterConverterLoaderException is thrown when an error occurs while loading a character conversion class.

Version:
$Revision: 1.2 $
Author:
Bas Peters
See Also:
Serialized Form

Constructor Summary
CharacterConverterLoaderException()
          Creates a new CharacterConverterLoaderException.
CharacterConverterLoaderException(String message)
          Creates a new CharacterConverterLoaderException with the specified message.
CharacterConverterLoaderException(String message, Throwable ex)
          Creates a new CharacterConverterLoaderException 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

CharacterConverterLoaderException

public CharacterConverterLoaderException()

Creates a new CharacterConverterLoaderException.


CharacterConverterLoaderException

public CharacterConverterLoaderException(String message)

Creates a new CharacterConverterLoaderException with the specified message.

Parameters:
message - information about the cause of the exception

CharacterConverterLoaderException

public CharacterConverterLoaderException(String message,
                                         Throwable ex)

Creates a new CharacterConverterLoaderException with the specified message and an underlying root cause.

Parameters:
message - information about the cause of the exception
ex - the nested exception that caused this exception
Method Detail

getCause

public Throwable getCause()

Return the root cause or null if there was no original exception.

Overrides:
getCause in class Throwable
Returns:
the root cause of this exception

initCause

public Throwable initCause(Throwable cause)

Sets the root cause of this exception. This may only be called once. Subsequent calls throw an IllegalStateException.

Overrides:
initCause in class Throwable
Parameters:
cause - the root cause of this exception
Returns:
the root cause of this exception
Throws:
IllegalStateException - if this method is called twice.


Copyright 2001-2003 Bas Peters. All Rights Reserved.