edu.umd.cfar.lamp.apploader.prefs
Class PreferenceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byedu.umd.cfar.lamp.apploader.prefs.PreferenceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ArgumentException

public class PreferenceException
extends java.lang.Exception

Thrown by a preference handler to indicate errors loading pref files, errors in pref file format, or incorrect preference access.

Author:
davidm
See Also:
Serialized Form

Constructor Summary
PreferenceException()
          Default constructor, with null message.
PreferenceException(java.lang.String message)
          Throws a pref exception with the given detail message.
PreferenceException(java.lang.String message, java.lang.Throwable cause)
          Encapsulates the throwable with a PreferenceException and some additional text.
PreferenceException(java.lang.Throwable cause)
          Encapsulates the throwable with a PreferenceException to avoid giving unnecessary information to callers.
 
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

PreferenceException

public PreferenceException(java.lang.Throwable cause)
Encapsulates the throwable with a PreferenceException to avoid giving unnecessary information to callers.

Parameters:
cause - The thrown thing that this exception wraps.

PreferenceException

public PreferenceException(java.lang.String message,
                           java.lang.Throwable cause)
Encapsulates the throwable with a PreferenceException and some additional text. Avoids giving unnecessary information to callers.

Parameters:
message - New detail message to display instead of cause's
cause - The thrown thing that this exception wraps.

PreferenceException

public PreferenceException(java.lang.String message)
Throws a pref exception with the given detail message.

Parameters:
message - New error detail message to display

PreferenceException

public PreferenceException()
Default constructor, with null message.