Logo GenPRES

Exceptions Module

Holds the OrderException, raises the OrderException for an order that could not be solved and returns the text of an exception.

Types

Type Description

OrderException

Raised when an order cannot be solved or created.

Functions and values

Function or value Description

raiseExc log m o

Full Usage: raiseExc log m o

Parameters:
Returns: 'a
Type parameters: 'a

Logs the message and the order when a logger is given, then raises an OrderException that the order could not be solved.

log : Logger option
m : string
o : Order
Returns: 'a

toString exn

Full Usage: toString exn

Parameters:
    exn : exn

Returns: string
exn : exn
Returns: string

Type something to start searching.