Class MathUnsupportedOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.UnsupportedOperationException
org.apache.commons.math.exception.MathUnsupportedOperationException
- All Implemented Interfaces:
Serializable,MathThrowable
public class MathUnsupportedOperationException
extends UnsupportedOperationException
implements MathThrowable
Base class for all unsupported features.
It is used for all the exceptions that share the semantics of the standard
UnsupportedOperationException, but must also provide a localized
message.- Since:
- 2.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMathUnsupportedOperationException(Object... args) MathUnsupportedOperationException(Localizable specific, Object... args) -
Method Summary
Modifier and TypeMethodDescriptionObject[]Gets the arguments used to build the message of this throwable.Gets the localizable pattern used to build the general part of the message of this throwable.Gets the message in the system default locale.Gets the message in a conventional US locale.getMessage(Locale locale) Get the message in a specified locale.Gets the localizable pattern used to build the specific part of the message of this throwable.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MathUnsupportedOperationException
- Parameters:
args- Arguments.
-
MathUnsupportedOperationException
- Parameters:
specific- Message pattern providing the specific context of the error.args- Arguments.
-
-
Method Details
-
getSpecificPattern
Gets the localizable pattern used to build the specific part of the message of this throwable.- Specified by:
getSpecificPatternin interfaceMathThrowable- Returns:
- localizable pattern used to build the specific part of the message of this throwable
-
getGeneralPattern
Gets the localizable pattern used to build the general part of the message of this throwable.- Specified by:
getGeneralPatternin interfaceMathThrowable- Returns:
- localizable pattern used to build the general part of the message of this throwable
-
getArguments
Gets the arguments used to build the message of this throwable.- Specified by:
getArgumentsin interfaceMathThrowable- Returns:
- the arguments used to build the message of this throwable
-
getMessage
Get the message in a specified locale.- Specified by:
getMessagein interfaceMathThrowable- Parameters:
locale- Locale in which the message should be translated.- Returns:
- the localized message.
-
getMessage
Gets the message in a conventional US locale.- Specified by:
getMessagein interfaceMathThrowable- Overrides:
getMessagein classThrowable- Returns:
- localized message
-
getLocalizedMessage
Gets the message in the system default locale.- Specified by:
getLocalizedMessagein interfaceMathThrowable- Overrides:
getLocalizedMessagein classThrowable- Returns:
- localized message
-