Package hec.hecmath

Class HecMathException

All Implemented Interfaces:
Serializable

public class HecMathException extends Exception implements 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 Details

    • HecMathException

      public HecMathException()
      Constructs an HecMathException with no detail message.
    • HecMathException

      public HecMathException(Throwable e)
      Constructs a new HecMathException and copies the Exception e.

      Parameters:
      e - a java.lang.Exception.
    • HecMathException

      public HecMathException(String message)
      Constructs an HecMathException with the specified detail message.

      Parameters:
      message - the detail message.
    • HecMathException

      public HecMathException(String message, Throwable e)
      Constructs an HecMathException with the specified detail message and an Exception.

      Parameters:
      message - the detail message.