org.crosswire.common.util
Class LucidRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.crosswire.common.util.LucidRuntimeException
All Implemented Interfaces:
Serializable

public class LucidRuntimeException
extends RuntimeException

EventExceptions are generally used for passing problems through the event system which does not allow checked exceptions through.

So LucidRuntimeException is a LucidException in all but inheritance - LucidException inherits from Exception and so is checked, where EventEception inherits from RuntimeException and so is not checked. In general you would create a subclass of LucidException before you used it, however EventExceptions would be used directly.

Author:
Joe Walker [joe at eireneh dot com]
See Also:
for license details.
The copyright to this program is held by it's authors.
, LucidException, Serialized Form

Field Summary
private static Logger log
          The log stream
protected  Object[] params
          The array of parameters
private static long serialVersionUID
          Serialization ID
 
Constructor Summary
LucidRuntimeException(MsgBase msg)
          All LucidRuntimeException are constructed with references to resources in an i18n properties file.
LucidRuntimeException(MsgBase msg, Object[] params)
          All LucidRuntimeException are constructed with references to resources in an i18n properties file.
LucidRuntimeException(MsgBase msg, Throwable cause)
          All LucidRuntimeException are constructed with references to resources in an i18n properties file.
LucidRuntimeException(MsgBase msg, Throwable cause, Object[] params)
          All LucidRuntimeException are constructed with references to resources in an i18n properties file.
 
Method Summary
 String getMessage()
          We only unravel the message when we need to to save time
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final Logger log
The log stream


serialVersionUID

private static final long serialVersionUID
Serialization ID

See Also:
Constant Field Values

params

protected final Object[] params
The array of parameters

Constructor Detail

LucidRuntimeException

public LucidRuntimeException(MsgBase msg)
All LucidRuntimeException are constructed with references to resources in an i18n properties file.

Parameters:
msg - The resource id to read

LucidRuntimeException

public LucidRuntimeException(MsgBase msg,
                             Throwable cause)
All LucidRuntimeException are constructed with references to resources in an i18n properties file.

Parameters:
msg - The resource id to read

LucidRuntimeException

public LucidRuntimeException(MsgBase msg,
                             Object[] params)
All LucidRuntimeException are constructed with references to resources in an i18n properties file. This version allows us to add parameters

Parameters:
msg - The resource id to read
params - An array of parameters

LucidRuntimeException

public LucidRuntimeException(MsgBase msg,
                             Throwable cause,
                             Object[] params)
All LucidRuntimeException are constructed with references to resources in an i18n properties file. This version allows us to add parameters

Parameters:
msg - The resource id to read
params - An array of parameters
Method Detail

getMessage

public String getMessage()
We only unravel the message when we need to to save time

Overrides:
getMessage in class Throwable
Returns:
The unraveled i18n string

Copyright ? 2003-2006