Top Description Fields Constructors Methods
org.apache.commons.math3.exception

public Class MathIllegalArgumentException

extends IllegalArgumentException
implements ExceptionContextProvider
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.exception.util.ExceptionContextProvider
Known Direct Subclasses
org.apache.commons.math3.exception.MathIllegalNumberException, org.apache.commons.math3.exception.MultiDimensionMismatchException, org.apache.commons.math3.exception.NoBracketingException, org.apache.commons.math3.exception.NullArgumentException, org.apache.commons.math3.genetics.InvalidRepresentationException, org.apache.commons.math3.geometry.euclidean.threed.NotARotationMatrixException, org.apache.commons.math3.geometry.spherical.oned.ArcsSet.InconsistentStateAt2PiWrapping, org.apache.commons.math3.linear.IllConditionedOperatorException, org.apache.commons.math3.linear.NonPositiveDefiniteOperatorException, org.apache.commons.math3.linear.NonSelfAdjointOperatorException, org.apache.commons.math3.linear.NonSymmetricMatrixException, org.apache.commons.math3.linear.SingularMatrixException, org.apache.commons.math3.linear.SingularOperatorException, org.apache.commons.math3.ode.JacobianMatrices.MismatchedEquations, org.apache.commons.math3.ode.UnknownParameterException, org.apache.commons.math3.stat.regression.ModelSpecificationException, org.apache.commons.math3.exception.NoDataException, org.apache.commons.math3.exception.InsufficientDataException
Imports
org.apache.commons.math3.exception.util.Localizable, .ExceptionContext, .ExceptionContextProvider

Base class for all preconditions violation exceptions. In most cases, this class should not be instantiated directly: it should serve as a base class to create all the exceptions that have the semantics of the standard IllegalArgumentException.
Since
2.2

Field Summary

Modifier and TypeField and Description
private final ExceptionContext
context

Context.

private static final long

Constructor Summary

AccessConstructor and Description
public
MathIllegalArgumentException(Localizable
Message pattern explaining the cause of the error.
pattern
,
Object...
Arguments.
args
)

Method Summary

Modifier and TypeMethod and Description
public ExceptionContext
getContext()

Implements org.apache.commons.math3.exception.util.ExceptionContextProvider.getContext.

Gets a reference to the "rich context" data structure that allows to customize error messages and store key, value pairs in exceptions.

public String
getLocalizedMessage()

Overrides java.lang.Throwable.getLocalizedMessage.

Creates a localized description of this throwable.

public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Field Detail

contextback to summary
private final ExceptionContext context

Context.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IllegalArgumentException.serialVersionUID.

Serializable version Id.

Constructor Detail

MathIllegalArgumentExceptionback to summary
public MathIllegalArgumentException(Localizable pattern, Object... args)
Parameters
pattern:Localizable

Message pattern explaining the cause of the error.

args:Object[]

Arguments.

Method Detail

getContextback to summary
public ExceptionContext getContext()

Implements org.apache.commons.math3.exception.util.ExceptionContextProvider.getContext.

Doc from org.apache.commons.math3.exception.util.ExceptionContextProvider.getContext.

Gets a reference to the "rich context" data structure that allows to customize error messages and store key, value pairs in exceptions.

Returns:ExceptionContext

a reference to the exception context.

getLocalizedMessageback to summary
public String getLocalizedMessage()

Overrides java.lang.Throwable.getLocalizedMessage.

Doc from java.lang.Throwable.getLocalizedMessage.

Creates a localized description of this throwable. Subclasses may override this method in order to produce a locale-specific message. For subclasses that do not override this method, the default implementation returns the same result as getMessage().

Returns:String

The localized description of this throwable.

Annotations
@Override
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override