org.apache.geronimo.common
Class ParameterizedRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.geronimo.common.ParameterizedRuntimeException
All Implemented Interfaces:
Serializable

public class ParameterizedRuntimeException
extends RuntimeException

Allows for an unchecked exception to be formatted using a given list of parameters.

Version:
$Revision: 1.3 $ $Date: 2004/03/10 09:58:25 $
See Also:
Serialized Form

Constructor Summary
ParameterizedRuntimeException()
          Default constructor.
ParameterizedRuntimeException(String message)
          Exception with a given message.
ParameterizedRuntimeException(String msg, Object[] params)
          Exception with a formatted message
ParameterizedRuntimeException(String msg, Object[] params, Throwable ex)
          Exception with a formatted message and root cause.
ParameterizedRuntimeException(String message, Throwable cause)
          Exception with a given message and root cause.
ParameterizedRuntimeException(Throwable cause)
          Exception with a root cause.
 
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

ParameterizedRuntimeException

public ParameterizedRuntimeException()
Default constructor.


ParameterizedRuntimeException

public ParameterizedRuntimeException(String message)
Exception with a given message.

Parameters:
message - unformatted message.

ParameterizedRuntimeException

public ParameterizedRuntimeException(String message,
                                     Throwable cause)
Exception with a given message and root cause.

Parameters:
message - unformatted message.
cause - root cause of the exception.

ParameterizedRuntimeException

public ParameterizedRuntimeException(Throwable cause)
Exception with a root cause.

Parameters:
cause - root cause of the exception.

ParameterizedRuntimeException

public ParameterizedRuntimeException(String msg,
                                     Object[] params)
Exception with a formatted message

Parameters:
msg - message format used by MessageFormat
params - message parameters
See Also:
MessageFormat

ParameterizedRuntimeException

public ParameterizedRuntimeException(String msg,
                                     Object[] params,
                                     Throwable ex)
Exception with a formatted message and root cause.

Parameters:
msg - message format used by MessageFormat
params - message parameters
ex - root cause
See Also:
MessageFormat


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.