Class MathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openspaces.core.internal.commons.math.MathException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConvergenceException
Base class for commons-math checked exceptions.
Supports nesting, emulating JDK 1.4 behavior if necessary.
- Version:
- $Revision: 822850 $ $Date: 2009-10-07 14:56:42 -0400 (Wed, 07 Oct 2009) $
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newMathExceptionwith no detail message.MathException(String pattern, Object... arguments) Constructs a newMathExceptionwith specified formatted detail message.MathException(Throwable rootCause) Constructs a newMathExceptionwith specified nestedThrowableroot cause.MathException(Throwable rootCause, String pattern, Object... arguments) Constructs a newMathExceptionwith specified formatted detail message and nestedThrowableroot cause. -
Method Summary
Modifier and TypeMethodDescriptionObject[]Gets the arguments used to build the message of this throwable.getMessage(Locale locale) Gets the message in a specified locale.Gets the pattern used to build the message of this throwable.voidPrints the stack trace of this exception to the standard error stream.voidPrints the stack trace of this exception to the specified stream.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MathException
public MathException()Constructs a newMathExceptionwith no detail message. -
MathException
Constructs a newMathExceptionwith specified formatted detail message. Message formatting is delegated toMessageFormat.- Parameters:
pattern- format specifierarguments- format arguments
-
MathException
Constructs a newMathExceptionwith specified nestedThrowableroot cause.- Parameters:
rootCause- the exception or error that caused this exception to be thrown.
-
MathException
Constructs a newMathExceptionwith specified formatted detail message and nestedThrowableroot cause. Message formatting is delegated toMessageFormat.- Parameters:
rootCause- the exception or error that caused this exception to be thrown.pattern- format specifierarguments- format arguments- Since:
- 1.2
-
-
Method Details
-
getPattern
Gets the pattern used to build the message of this throwable.- Returns:
- the pattern used to build the message of this throwable
- Since:
- 1.2
-
getArguments
Gets the arguments used to build the message of this throwable.- Returns:
- the arguments used to build the message of this throwable
- Since:
- 1.2
-
getMessage
Gets the message in a specified locale.- Parameters:
locale- Locale in which the message should be translated- Returns:
- localized message
- Since:
- 1.2
-
getMessage
- Overrides:
getMessagein classThrowable
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
printStackTrace
public void printStackTrace()Prints the stack trace of this exception to the standard error stream.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints the stack trace of this exception to the specified stream.- Overrides:
printStackTracein classThrowable- Parameters:
out- thePrintStreamto use for output
-