Exception.Create

Syntax

Create(Value: String);

Parameters

Value. Error description.

Description

The Create class creates an error instance.

Comments

The error description handled by the program and displayed in the IException.Message property is passed as the Value input parameter.

Example

Sub UserProc;
Begin
    Try
        Raise New Exception.Create("Exception");
    Except On E: Exception Do
        Debug.WriteLine("The except block. Message text: ");
        Debug.WriteLine(e.Message);
    End Try;
End Sub UserProc;

After executing the example an exception is thrown.

See also:

Exception