IDimInstance.BuilderException

Syntax

BuilderException: IException;

Description

The BuilderException property returns information on errors that may occur while opening the dictionary.

Comments

If the dictionary opens successfully, the property returns Null.

Example

Executing the example requires that the repository contains a dictionary with the Dim_1 identifier.

Sub Main;

Var

MB: IMetabase;

Dim: IDimInstance;

Begin

MB := MetabaseClass.Active;

Dim := MB.ItemById("Dim_1").Open(Null) As IDimInstance;

If Dim.BuilderException <> Null Then

Dim.BuilderException.ReportError;

Else

Debug.WriteLine(Dim.Elements.Count);

End If;

End Sub Main;

The dictionary opens After executing the example. If an exception was thrown while opening the dictionary, information on the exception is displayed on the screen. If the dictionary opens successfully, the console window shows the number of dictionary elements.

See also:

IDimInstance