public class HecMathException
extends java.lang.Exception
implements java.io.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.
HecMath,
Serialized Form| Constructor and Description |
|---|
HecMathException()
Constructs an
HecMathException with no detail message. |
HecMathException(java.lang.String message)
Constructs an
HecMathException with the specified
detail message. |
HecMathException(java.lang.String message,
java.lang.Throwable e)
Constructs an
HecMathException with the specified
detail message and an Exception. |
HecMathException(java.lang.Throwable e)
Constructs a new
HecMathException and copies the
Exception e. |
public HecMathException()
HecMathException with no detail message.public HecMathException(java.lang.Throwable e)
HecMathException and copies the
Exception e.e - a java.lang.Exception.public HecMathException(java.lang.String message)
HecMathException with the specified
detail message.message - the detail message.public HecMathException(java.lang.String message,
java.lang.Throwable e)
HecMathException with the specified
detail message and an Exception.message - the detail message.