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

public Class MathIllegalStateException

extends IllegalStateException
implements ExceptionContextProvider
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.exception.util.ExceptionContextProvider
Known Direct Subclasses
org.apache.commons.math3.exception.MathInternalError, org.apache.commons.math3.exception.MathParseException, org.apache.commons.math3.exception.MaxCountExceededException, org.apache.commons.math3.geometry.euclidean.threed.CardanEulerSingularityException, org.apache.commons.math3.optim.linear.NoFeasibleSolutionException, org.apache.commons.math3.optim.linear.UnboundedSolutionException, org.apache.commons.math3.optimization.linear.NoFeasibleSolutionException, org.apache.commons.math3.optimization.linear.UnboundedSolutionException, org.apache.commons.math3.exception.ConvergenceException
Imports
org.apache.commons.math3.exception.util.Localizable, .LocalizedFormats, .ExceptionContext, .ExceptionContextProvider

Base class for all exceptions that signal that the process throwing the exception is in a state that does not comply with the set of states that it is designed to be in.
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
MathIllegalStateException(Localizable
Message pattern explaining the cause of the error.
pattern
,
Object...
Arguments.
args
)

Simple constructor.

public
MathIllegalStateException(Throwable
Root cause.
cause
,
Localizable
Message pattern explaining the cause of the error.
pattern
,
Object...
Arguments.
args
)

Simple constructor.

public
MathIllegalStateException()

Default constructor.

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.IllegalStateException.serialVersionUID.

Serializable version Id.

Constructor Detail

MathIllegalStateExceptionback to summary
public MathIllegalStateException(Localizable pattern, Object... args)

Simple constructor.

Parameters
pattern:Localizable

Message pattern explaining the cause of the error.

args:Object[]

Arguments.

MathIllegalStateExceptionback to summary
public MathIllegalStateException(Throwable cause, Localizable pattern, Object... args)

Simple constructor.

Parameters
cause:Throwable

Root cause.

pattern:Localizable

Message pattern explaining the cause of the error.

args:Object[]

Arguments.

MathIllegalStateExceptionback to summary
public MathIllegalStateException()

Default constructor.

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