public class MathRuntimeException extends RuntimeException
| Constructor and Description | 
|---|
| MathRuntimeException(String pattern,
                    Object... arguments)Constructs a new  MathRuntimeExceptionwith specified formatted detail message. | 
| MathRuntimeException(Throwable rootCause)Constructs a new  MathRuntimeExceptionwith specified nestedThrowableroot cause. | 
| MathRuntimeException(Throwable rootCause,
                    String pattern,
                    Object... arguments)Constructs a new  MathRuntimeExceptionwith specified formatted detail message
 and nestedThrowableroot cause. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ArithmeticException | createArithmeticException(String pattern,
                         Object... arguments)Constructs a new  ArithmeticExceptionwith specified formatted detail message. | 
| static ArrayIndexOutOfBoundsException | createArrayIndexOutOfBoundsException(String pattern,
                                    Object... arguments)Constructs a new  ArrayIndexOutOfBoundsExceptionwith specified formatted detail
 message. | 
| static ConcurrentModificationException | createConcurrentModificationException(String pattern,
                                     Object... arguments)Constructs a new  ConcurrentModificationExceptionwith specified formatted detail
 message. | 
| static EOFException | createEOFException(String pattern,
                  Object... arguments)Constructs a new  EOFExceptionwith specified formatted detail message. | 
| static IllegalArgumentException | createIllegalArgumentException(String pattern,
                              Object... arguments)Constructs a new  IllegalArgumentExceptionwith specified formatted detail
 message. | 
| static IllegalArgumentException | createIllegalArgumentException(Throwable rootCause)Constructs a new  IllegalArgumentExceptionwith specified nestedThrowableroot cause. | 
| static IllegalStateException | createIllegalStateException(String pattern,
                           Object... arguments)Constructs a new  IllegalStateExceptionwith specified formatted detail message. | 
| static RuntimeException | createInternalError(Throwable cause)Create an  RuntimeExceptionfor an internal error. | 
| static IOException | createIOException(Throwable rootCause)Constructs a new  IOExceptionwith specified nestedThrowableroot
 cause. | 
| static NoSuchElementException | createNoSuchElementException(String pattern,
                            Object... arguments)Constructs a new  NoSuchElementExceptionwith specified formatted detail message. | 
| static NullPointerException | createNullPointerException(String pattern,
                          Object... arguments)Constructs a new  NullPointerExceptionwith specified formatted detail message. | 
| static ParseException | createParseException(int offset,
                    String pattern,
                    Object... arguments)Constructs a new  ParseExceptionwith 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, toStringpublic 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 Throwablepublic String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream out)
printStackTrace in class Throwableout - 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.