org.spaceroots.mantissa
Class MantissaException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.spaceroots.mantissa.MantissaException
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- CardanEulerSingularityException, CostException, DerivativeException, EstimationException, ExhaustedSampleException, FunctionException, IntegratorException, NoConvergenceException, NotARotationMatrixException, NotPositiveDefiniteMatrixException, SingularMatrixException
public class MantissaException extends java.lang.ExceptionThis class is the base class for all specific exceptions thrown by the mantissa classes.When the mantissa classes throw exceptions that are specific to the package, these exceptions are always subclasses of MantissaException. When exceptions that are already covered by the standard java API should be thrown, like ArrayIndexOutOfBoundsException or IllegalArgumentException, these standard exceptions are thrown rather than the mantissa specific ones.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MantissaException()Simple constructor.MantissaException(java.lang.String message)Simple constructor.MantissaException(java.lang.String specifier, java.lang.String[] parts)Simple constructor.MantissaException(java.lang.String specifier, java.lang.String[] parts, java.lang.Throwable cause)Simple constructor.MantissaException(java.lang.String message, java.lang.Throwable cause)Simple constructor.MantissaException(java.lang.Throwable cause)Simple constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.Stringtranslate(java.lang.String s)Translate a string.static java.lang.Stringtranslate(java.lang.String specifier, java.lang.String[] parts)Translate a message.
-
-
-
Constructor Detail
-
MantissaException
public MantissaException()
Simple constructor. Build an exception with an empty message
-
MantissaException
public MantissaException(java.lang.String message)
Simple constructor. Build an exception by translating the specified message- Parameters:
message- message to translate
-
MantissaException
public MantissaException(java.lang.String specifier, java.lang.String[] parts)Simple constructor. Build an exception by translating and formating a message- Parameters:
specifier- format specifier (to be translated)parts- to insert in the format (no translation)
-
MantissaException
public MantissaException(java.lang.Throwable cause)
Simple constructor. Build an exception from a cause- Parameters:
cause- cause of this exception
-
MantissaException
public MantissaException(java.lang.String message, java.lang.Throwable cause)Simple constructor. Build an exception from a message and a cause- Parameters:
message- message to translatecause- cause of this exception
-
MantissaException
public MantissaException(java.lang.String specifier, java.lang.String[] parts, java.lang.Throwable cause)Simple constructor. Build an exception from a message and a cause- Parameters:
specifier- format specifier (to be translated)parts- to insert in the format (no translation)cause- cause of this exception
-
-
Method Detail
-
translate
public static java.lang.String translate(java.lang.String s)
Translate a string.- Parameters:
s- string to translate- Returns:
- translated string
-
translate
public static java.lang.String translate(java.lang.String specifier, java.lang.String[] parts)Translate a message.- Parameters:
specifier- format specifier (to be translated)parts- to insert in the format (no translation)- Returns:
- translated message
-
-
DataMelt 3.0 © DataMelt by jWork.ORG