public class MathException extends java.lang.Exception implements MathThrowable
Supports nesting, emulating JDK 1.4 behavior if necessary.
Constructor and Description |
---|
MathException()
Constructs a new
MathException with no
detail message. |
MathException(Localizable pattern,
java.lang.Object... arguments)
Constructs a new
MathException with specified
formatted detail message. |
MathException(java.lang.String pattern,
java.lang.Object... arguments)
Deprecated.
as of 2.2 replaced by
MathException(Localizable, Object...) |
MathException(java.lang.Throwable rootCause)
Constructs a new
MathException with specified
nested Throwable root cause. |
MathException(java.lang.Throwable rootCause,
Localizable pattern,
java.lang.Object... arguments)
Constructs a new
MathException with specified
formatted detail message and nested Throwable root cause. |
MathException(java.lang.Throwable rootCause,
java.lang.String pattern,
java.lang.Object... arguments)
Deprecated.
as of 2.2 replaced by
MathException(Throwable, Localizable, Object...) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArguments()
Gets the arguments used to build the message of this throwable.
|
Localizable |
getGeneralPattern()
Gets the localizable pattern used to build the general part of the message of this throwable.
|
java.lang.String |
getLocalizedMessage()
Gets the message in the system default locale.
|
java.lang.String |
getMessage()
Gets the message in a conventional US locale.
|
java.lang.String |
getMessage(java.util.Locale locale)
Gets the message in a specified locale.
|
java.lang.String |
getPattern()
Deprecated.
as of 2.2 replaced by
getSpecificPattern() and getGeneralPattern() |
Localizable |
getSpecificPattern()
Gets the localizable pattern used to build the specific part of the message of this throwable.
|
void |
printStackTrace()
Prints the stack trace of this exception to the standard error stream.
|
void |
printStackTrace(java.io.PrintStream out)
Prints the stack trace of this exception to the specified stream.
|
public MathException()
MathException
with no
detail message.@Deprecated public MathException(java.lang.String pattern, java.lang.Object... arguments)
MathException(Localizable, Object...)
MathException
with specified
formatted detail message.
Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic MathException(Localizable pattern, java.lang.Object... arguments)
MathException
with specified
formatted detail message.
Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic MathException(java.lang.Throwable rootCause)
MathException
with specified
nested Throwable
root cause.rootCause
- the exception or error that caused this exception
to be thrown.@Deprecated public MathException(java.lang.Throwable rootCause, java.lang.String pattern, java.lang.Object... arguments)
MathException(Throwable, Localizable, Object...)
MathException
with specified
formatted detail message and nested Throwable
root cause.
Message formatting is delegated to MessageFormat
.rootCause
- the exception or error that caused this exception
to be thrown.pattern
- format specifierarguments
- format argumentspublic MathException(java.lang.Throwable rootCause, Localizable pattern, java.lang.Object... arguments)
MathException
with specified
formatted detail message and nested Throwable
root cause.
Message formatting is delegated to MessageFormat
.rootCause
- the exception or error that caused this exception
to be thrown.pattern
- format specifierarguments
- format arguments@Deprecated public java.lang.String getPattern()
getSpecificPattern()
and getGeneralPattern()
public Localizable getSpecificPattern()
getSpecificPattern
in interface MathThrowable
public Localizable getGeneralPattern()
getGeneralPattern
in interface MathThrowable
public java.lang.Object[] getArguments()
getArguments
in interface MathThrowable
public java.lang.String getMessage(java.util.Locale locale)
getMessage
in interface MathThrowable
locale
- Locale in which the message should be translatedpublic java.lang.String getMessage()
getMessage
in interface MathThrowable
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in interface MathThrowable
getLocalizedMessage
in class java.lang.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream out)
printStackTrace
in class java.lang.Throwable
out
- the PrintStream
to use for outputCopyright © 2010 - 2020 Adobe. All Rights Reserved