Mathematical calculation error.
class MathError( [code], [description], [extra] ) \ from Error( code, description, extra )
code from Error | Error code associated with this error. |
description from Error | Textual description for the error. |
line from Error | Line at which the error happened. |
message from Error | Arbitrary text used to better explain and define the error conditions. |
module from Error | Name of the module where the error has been generated. |
origin from Error | String identifying the origin of the error. |
pc from Error | Program counter of the instruction that raised the error. |
subErrors from Error | Array of sub-errors. |
symbol from Error | Symbol name (function or method) where the error has been raised. |
systemError from Error | If the error was caused by a failure. |
getSysErrDesc from Error | returns system specific error description. |
heading from Error | Creates a short textual representation of the error. |
toString from Error | Creates a textual representation of the error. |
class MathError( [code], [description], [extra] ) \ from Error( code, description, extra )
code | A numeric error code. |
description | A textual description of the error code. |
extra | A descriptive message explaining the error conditions. |
Mathematical calculation error.
This class is generated when a mathematical operation caused an error; it may be a domain error, as trying to extract the square root of a negative number, an overflow error or a division by zero. The error code will detail what kind of math error has happened.