public class MathRuntimeException extends RuntimeException
Constructor and Description |
---|
MathRuntimeException(String pattern,
Object... arguments)
Constructs a new
MathRuntimeException with specified formatted detail message. |
MathRuntimeException(Throwable rootCause)
Constructs a new
MathRuntimeException with specified nested
Throwable root cause. |
MathRuntimeException(Throwable rootCause,
String pattern,
Object... arguments)
Constructs a new
MathRuntimeException with specified formatted detail message
and nested Throwable root cause. |
Modifier and Type | Method and Description |
---|---|
static ArithmeticException |
createArithmeticException(String pattern,
Object... arguments)
Constructs a new
ArithmeticException with specified formatted detail message. |
static ArrayIndexOutOfBoundsException |
createArrayIndexOutOfBoundsException(String pattern,
Object... arguments)
Constructs a new
ArrayIndexOutOfBoundsException with specified formatted detail
message. |
static ConcurrentModificationException |
createConcurrentModificationException(String pattern,
Object... arguments)
Constructs a new
ConcurrentModificationException with specified formatted detail
message. |
static EOFException |
createEOFException(String pattern,
Object... arguments)
Constructs a new
EOFException with specified formatted detail message. |
static IllegalArgumentException |
createIllegalArgumentException(String pattern,
Object... arguments)
Constructs a new
IllegalArgumentException with specified formatted detail
message. |
static IllegalArgumentException |
createIllegalArgumentException(Throwable rootCause)
Constructs a new
IllegalArgumentException with specified nested
Throwable root cause. |
static IllegalStateException |
createIllegalStateException(String pattern,
Object... arguments)
Constructs a new
IllegalStateException with specified formatted detail message. |
static RuntimeException |
createInternalError(Throwable cause)
Create an
RuntimeException for an internal error. |
static IOException |
createIOException(Throwable rootCause)
Constructs a new
IOException with specified nested Throwable root
cause. |
static NoSuchElementException |
createNoSuchElementException(String pattern,
Object... arguments)
Constructs a new
NoSuchElementException with specified formatted detail message. |
static NullPointerException |
createNullPointerException(String pattern,
Object... arguments)
Constructs a new
NullPointerException with specified formatted detail message. |
static ParseException |
createParseException(int offset,
String pattern,
Object... arguments)
Constructs a new
ParseException with specified formatted detail message. |
Object[] |
getArguments()
Gets the arguments used to build the message of this throwable.
|
String |
getLocalizedMessage() |
String |
getMessage() |
String |
getMessage(Locale locale)
Gets the message in a specified locale.
|
String |
getPattern()
Gets the pattern used to build the message of this throwable.
|
void |
printStackTrace()
Prints the stack trace of this exception to the standard error stream.
|
void |
printStackTrace(PrintStream out)
Prints the stack trace of this exception to the specified stream.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
public MathRuntimeException(String pattern, Object... arguments)
MathRuntimeException
with specified formatted detail message.
Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic MathRuntimeException(Throwable rootCause)
MathRuntimeException
with specified nested
Throwable
root cause.rootCause
- the exception or error that caused this exception to be thrown.public MathRuntimeException(Throwable rootCause, String pattern, Object... arguments)
MathRuntimeException
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 String getPattern()
public Object[] getArguments()
public String getMessage(Locale locale)
locale
- Locale in which the message should be translatedpublic String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream out)
printStackTrace
in class Throwable
out
- the PrintStream
to use for outputpublic static ArithmeticException createArithmeticException(String pattern, Object... arguments)
ArithmeticException
with specified formatted detail message.
Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic static ArrayIndexOutOfBoundsException createArrayIndexOutOfBoundsException(String pattern, Object... arguments)
ArrayIndexOutOfBoundsException
with specified formatted detail
message. Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic static EOFException createEOFException(String pattern, Object... arguments)
EOFException
with specified formatted detail message. Message
formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic static IOException createIOException(Throwable rootCause)
IOException
with specified nested Throwable
root
cause. This factory method allows chaining of other exceptions within an
IOException
even for Java 5. The constructor for IOException
with a
cause parameter was introduced only with Java 6.
rootCause
- the exception or error that caused this exception to be thrown.public static IllegalArgumentException createIllegalArgumentException(String pattern, Object... arguments)
IllegalArgumentException
with specified formatted detail
message. Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic static IllegalArgumentException createIllegalArgumentException(Throwable rootCause)
IllegalArgumentException
with specified nested
Throwable
root cause.rootCause
- the exception or error that caused this exception to be thrown.public static IllegalStateException createIllegalStateException(String pattern, Object... arguments)
IllegalStateException
with specified formatted detail message.
Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic static ConcurrentModificationException createConcurrentModificationException(String pattern, Object... arguments)
ConcurrentModificationException
with specified formatted detail
message. Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic static NoSuchElementException createNoSuchElementException(String pattern, Object... arguments)
NoSuchElementException
with specified formatted detail message.
Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic static NullPointerException createNullPointerException(String pattern, Object... arguments)
NullPointerException
with specified formatted detail message.
Message formatting is delegated to MessageFormat
.pattern
- format specifierarguments
- format argumentspublic static ParseException createParseException(int offset, String pattern, Object... arguments)
ParseException
with specified formatted detail message. Message
formatting is delegated to MessageFormat
.offset
- offset at which error occurredpattern
- format specifierarguments
- format argumentspublic static RuntimeException createInternalError(Throwable cause)
RuntimeException
for an internal error.cause
- underlying causeRuntimeException
for an internal errorCopyright © GigaSpaces.