Logo GenPRES

Exceptions Module

Holds the solver exception, raises the exception with a new error message added to a list of error messages, and writes an exception as text. Only the new error message is logged, and only when a logger is given.

Types

Type Description

SolverException

Solver exception

Functions and values

Function or value Description

raiseExc log errs m

Full Usage: raiseExc log errs m

Parameters:
Returns: 'a
Type parameters: 'a

Raise an EquationException with Message m and adds it to the list of errs.

log : Logger option
errs : Message list
m : Message
Returns: 'a

toString exn

Full Usage: toString exn

Parameters:
    exn : exn

Returns: string

Convert an exception to a string.

exn : exn
Returns: string

Type something to start searching.