org.apache.commons.nabla
Class DifferentiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.commons.nabla.DifferentiationException
All Implemented Interfaces:
Serializable, org.apache.commons.math3.exception.util.ExceptionContextProvider

public class DifferentiationException
extends RuntimeException
implements org.apache.commons.math3.exception.util.ExceptionContextProvider

This class represent differentiation exceptions.

Exceptions of this type are thrown when a class cannot be differentiated.

Version:
$Id$
See Also:
Serialized Form

Constructor Summary
DifferentiationException()
          Default constructor.
DifferentiationException(org.apache.commons.math3.exception.util.Localizable pattern, Object... args)
          Constructor with a specific message.
 
Method Summary
static IllegalArgumentException createIllegalArgumentException(org.apache.commons.math3.exception.util.Localizable specifier, Object... parts)
          Create an IllegalArgumentException with localized message.
static RuntimeException createInternalError(Throwable cause)
          Create an RuntimeException for an internal error.
 org.apache.commons.math3.exception.util.ExceptionContext getContext()
          
 String getLocalizedMessage()
          
 String getMessage()
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

DifferentiationException

public DifferentiationException()
Default constructor.


DifferentiationException

public DifferentiationException(org.apache.commons.math3.exception.util.Localizable pattern,
                                Object... args)
Constructor with a specific message.

Parameters:
pattern - Message pattern providing the specific context of the error.
args - Arguments.
Method Detail

getContext

public org.apache.commons.math3.exception.util.ExceptionContext getContext()

Specified by:
getContext in interface org.apache.commons.math3.exception.util.ExceptionContextProvider

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable

getLocalizedMessage

public String getLocalizedMessage()

Overrides:
getLocalizedMessage in class Throwable

createIllegalArgumentException

public static IllegalArgumentException createIllegalArgumentException(org.apache.commons.math3.exception.util.Localizable specifier,
                                                                      Object... parts)
Create an IllegalArgumentException with localized message.

Parameters:
specifier - format specifier (to be translated)
parts - parts to insert in the format (no translation)
Returns:
an IllegalArgumentException with localized message

createInternalError

public static RuntimeException createInternalError(Throwable cause)
Create an RuntimeException for an internal error.

Parameters:
cause - underlying cause
Returns:
an RuntimeException for an internal error


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.