org.apache.commons.math.exception
public class MathUnsupportedOperationException extends UnsupportedOperationException implements MathThrowable
UnsupportedOperationException
, but must also provide a localized
message.Modifier and Type | Field and Description |
---|---|
private Object[] |
arguments
Arguments used to build the message.
|
private static long |
serialVersionUID
Serializable version Id.
|
private Localizable |
specific
Pattern used to build the message (specific context).
|
Constructor and Description |
---|
MathUnsupportedOperationException(Localizable specific,
Object... args) |
MathUnsupportedOperationException(Object... args) |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getLocalizedMessage()
Gets the message in the system default locale.
|
String |
getMessage()
Gets the message in a conventional US locale.
|
String |
getMessage(Locale locale)
Get the message in a specified locale.
|
Localizable |
getSpecificPattern()
Gets the localizable pattern used to build the specific part of the message of this throwable.
|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
private final Localizable specific
private final Object[] arguments
public MathUnsupportedOperationException(Object... args)
args
- Arguments.public MathUnsupportedOperationException(Localizable specific, Object... args)
specific
- Message pattern providing the specific context of
the error.args
- Arguments.public Localizable getSpecificPattern()
getSpecificPattern
in interface MathThrowable
public Localizable getGeneralPattern()
getGeneralPattern
in interface MathThrowable
public Object[] getArguments()
getArguments
in interface MathThrowable
public String getMessage(Locale locale)
getMessage
in interface MathThrowable
locale
- Locale in which the message should be translated.public String getMessage()
getMessage
in interface MathThrowable
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in interface MathThrowable
getLocalizedMessage
in class Throwable
Copyright (c) 2003-2013 Apache Software Foundation