Exception.Create

Syntax

Create(Value: String);

Parameters

Value - error description.

Description

The Create class creates an instance of an error. The error description handled by the program and displayed in the Message property is passed as the Value input parameter.

Example

Sub Main;

Begin

Try

Raise New Exception.Create("Exception");

Except On E: Exception Do

Debug.WriteLine("The except block. The message text: ");

Debug.WriteLine(e.Message);

End Try;

End Sub Main;

Executing the example throws an exception.

See also:

Exception