org.opensourcephysics.numerics
Class NumericMethodException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.opensourcephysics.numerics.NumericMethodException
All Implemented Interfaces:
java.io.Serializable

public final class NumericMethodException
extends java.lang.RuntimeException

Indicates that an error occured in a numeric method.

See Also:
Serialized Form

Field Summary
 int error_code
          Field error_code sotes an optional error code
 double error_value
          Field error_value stores an optional numeric error.
 
Constructor Summary
NumericMethodException()
          Constructs a RuntimeException with no detail message.
NumericMethodException(java.lang.String msg)
          Constructs a RuntimeException with the specified detail message.
NumericMethodException(java.lang.String msg, int code, double val)
          Constructs a RuntimeException with the specified detail message, error code, and error estimate.
 
Method Summary
 java.lang.String getMessage()
          Returns the error message string of this throwable object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

error_value

public double error_value
Field error_value stores an optional numeric error.


error_code

public int error_code
Field error_code sotes an optional error code

Constructor Detail

NumericMethodException

public NumericMethodException()
Constructs a RuntimeException with no detail message.


NumericMethodException

public NumericMethodException(java.lang.String msg)
Constructs a RuntimeException with the specified detail message.

Parameters:
msg - the detail message.

NumericMethodException

public NumericMethodException(java.lang.String msg,
                              int code,
                              double val)
Constructs a RuntimeException with the specified detail message, error code, and error estimate.

Parameters:
msg -
code -
val -
Method Detail

getMessage

public java.lang.String getMessage()
Returns the error message string of this throwable object.

Overrides:
getMessage in class java.lang.Throwable