Package hec.hecmath
Class HecMathException
java.lang.Object
java.lang.Throwable
java.lang.Exception
hec.hecmath.HecMathException
- All Implemented Interfaces:
Serializable
HecMathException is used to communicate errors occuring in the
use of functions associated with the HecMath, TimeSeriesMath, and PairedDataMath
classes. Specifically if the user passes parameters to the math functions in HecMath or the
subclasses which would result in an illegal operation ( for example, divide by zero )
an HecMathException is thrown and the error message set. In
addition, exceptions in the form of java.lang.RuntimeException are caught in
HecMath, TimeSeriesMath, and PairedDataMath and converted to
an HecMathException.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anHecMathExceptionwith no detail message.HecMathException(String message) Constructs anHecMathExceptionwith the specified detail message.HecMathException(String message, Throwable e) Constructs anHecMathExceptionwith the specified detail message and an Exception.Constructs a newHecMathExceptionand copies the Exceptione. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HecMathException
public HecMathException()Constructs anHecMathExceptionwith no detail message. -
HecMathException
Constructs a newHecMathExceptionand copies the Exceptione.- Parameters:
e- ajava.lang.Exception.
-
HecMathException
Constructs anHecMathExceptionwith the specified detail message.- Parameters:
message- the detail message.
-
HecMathException
Constructs anHecMathExceptionwith the specified detail message and an Exception.- Parameters:
message- the detail message.
-