Package org.opensourcephysics.numerics
Class NumericMethodException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opensourcephysics.numerics.NumericMethodException
- All Implemented Interfaces:
Serializable
Indicates that an error occured in a numeric method.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Field error_code sotes an optional error codedouble
Field error_value stores an optional numeric error. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aRuntimeException
with no detail message.Constructs aRuntimeException
with the specified detail message.NumericMethodException
(String msg, int code, double val) Constructs aRuntimeException
with the specified detail message, error code, and error estimate. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error message string of this throwable object.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
error_value
public double error_valueField error_value stores an optional numeric error. -
error_code
public int error_codeField error_code sotes an optional error code
-
-
Constructor Details
-
NumericMethodException
public NumericMethodException()Constructs aRuntimeException
with no detail message. -
NumericMethodException
Constructs aRuntimeException
with the specified detail message.- Parameters:
msg
- the detail message.
-
NumericMethodException
Constructs aRuntimeException
with the specified detail message, error code, and error estimate.- Parameters:
msg
-code
-val
-
-
-
Method Details
-
getMessage
Returns the error message string of this throwable object.- Overrides:
getMessage
in classThrowable
-