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:
java.io.Serializable,MathThrowable
public class MathUnsupportedOperationException extends java.lang.UnsupportedOperationException implements MathThrowable
Base class for all unsupported features. It is used for all the exceptions that share the semantics of the standardUnsupportedOperationException, but must also provide a localized message.- Since:
- 2.2
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MathUnsupportedOperationException(java.lang.Object... args)MathUnsupportedOperationException(Localizable specific, java.lang.Object... args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]getArguments()Gets the arguments used to build the message of this throwable.LocalizablegetGeneralPattern()Gets the localizable pattern used to build the general part of the message of this throwable.java.lang.StringgetLocalizedMessage()Gets the message in the system default locale.java.lang.StringgetMessage()Gets the message in a conventional US locale.java.lang.StringgetMessage(java.util.Locale locale)Get the message in a specified locale.LocalizablegetSpecificPattern()Gets the localizable pattern used to build the specific part of the message of this throwable.
-
-
-
Constructor Detail
-
MathUnsupportedOperationException
public MathUnsupportedOperationException(java.lang.Object... args)
- Parameters:
args- Arguments.
-
MathUnsupportedOperationException
public MathUnsupportedOperationException(Localizable specific, java.lang.Object... args)
- Parameters:
specific- Message pattern providing the specific context of the error.args- Arguments.
-
-
Method Detail
-
getSpecificPattern
public Localizable 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
public Localizable 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
public java.lang.Object[] 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
public java.lang.String getMessage(java.util.Locale locale)
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
public java.lang.String getMessage()
Gets the message in a conventional US locale.- Specified by:
getMessagein interfaceMathThrowable- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- localized message
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
Gets the message in the system default locale.- Specified by:
getLocalizedMessagein interfaceMathThrowable- Overrides:
getLocalizedMessagein classjava.lang.Throwable- Returns:
- localized message
-
-