org.apache.commons.math.exception
Interface MathThrowable

All Known Implementing Classes:
ArgumentOutsideDomainException, CardanEulerSingularityException, ConvergenceException, ConvergenceException, DerivativeException, DimensionMismatchException, DimensionMismatchException, DuplicateSampleAbscissaException, EstimationException, EventException, FractionConversionException, FunctionEvaluationException, IntegratorException, InvalidMatrixException, MathConfigurationException, MathException, MathIllegalArgumentException, MathIllegalNumberException, MathIllegalStateException, MathInternalError, MathRuntimeException, MathUnsupportedOperationException, MatrixIndexException, MatrixVisitorException, MaxEvaluationsExceededException, MaxIterationsExceededException, NoDataException, NoFeasibleSolutionException, NonMonotonousSequenceException, NonSquareMatrixException, NotARotationMatrixException, NotPositiveDefiniteMatrixException, NotPositiveException, NotStrictlyPositiveException, NotSymmetricMatrixException, NullArgumentException, NumberIsTooLargeException, NumberIsTooSmallException, OptimizationException, OutOfRangeException, SingularMatrixException, UnboundedSolutionException, ZeroException

public interface MathThrowable

Interface for commons-math throwables.

Since:
2.2
Version:
$Revision: 1035475 $ $Date: 2010-11-15 23:39:25 +0100 (lun. 15 nov. 2010) $

Method Summary
 java.lang.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.
 java.lang.String getLocalizedMessage()
          Gets the message in the system default locale.
 java.lang.String getMessage()
          Gets the message in a conventional US locale.
 java.lang.String getMessage(java.util.Locale locale)
          Gets the message in a specified locale.
 Localizable getSpecificPattern()
          Gets the localizable pattern used to build the specific part of the message of this throwable.
 

Method Detail

getSpecificPattern

Localizable getSpecificPattern()
Gets the localizable pattern used to build the specific part of the message of this throwable.

Returns:
localizable pattern used to build the specific part of the message of this throwable

getGeneralPattern

Localizable getGeneralPattern()
Gets the localizable pattern used to build the general part of the message of this throwable.

Returns:
localizable pattern used to build the general part of the message of this throwable

getArguments

java.lang.Object[] getArguments()
Gets the arguments used to build the message of this throwable.

Returns:
the arguments used to build the message of this throwable

getMessage

java.lang.String getMessage(java.util.Locale locale)
Gets the message in a specified locale.

Parameters:
locale - Locale in which the message should be translated
Returns:
localized message

getMessage

java.lang.String getMessage()
Gets the message in a conventional US locale.

Returns:
localized message

getLocalizedMessage

java.lang.String getLocalizedMessage()
Gets the message in the system default locale.

Returns:
localized message


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.