System.Exception - Manhunter07/MFL GitHub Wiki
Declaration
type Exception = record(Message: string)
constructor Exception(Message: string) = \built-in\
Description
The Exception
type in the System
package is used to store run-time exception information in MFL. Exceptions are there to be raised if an unintended state occurs during execution. Exception
is the base type for all exception objects and can be extended to store additional fields. By default, it contains a Message
field which holds a string that is shown to the user.