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 TypeFieldDescriptionintField error_code sotes an optional error codedoubleField error_value stores an optional numeric error. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aRuntimeExceptionwith no detail message.Constructs aRuntimeExceptionwith the specified detail message.NumericMethodException(String msg, int code, double val) Constructs aRuntimeExceptionwith 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 aRuntimeExceptionwith no detail message. -
NumericMethodException
Constructs aRuntimeExceptionwith the specified detail message.- Parameters:
msg- the detail message.
-
NumericMethodException
Constructs aRuntimeExceptionwith 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:
getMessagein classThrowable
-