cadetill's blog Copyright © Xavier Martínez (cadetill)

Class EGMException

Unit

Declaration

type EGMException = class(Exception)

Description

Base class for all Exception on GMLib.

If you want to translate the exceptions, follow this steps:

  1. Create a new element into GMSets.TGMLang set representing the new language.

  2. Create a new const array into GMTranslations unit named Lang_XXX.

  3. And put new set value into GetTranslateText case.

Hierarchy

Overview

Methods

Public constructor Create(const Msg: string; const Args: array of const; Lang: TGMLang); reintroduce; overload; virtual;
Public constructor Create(const Idx: Integer; const Args: array of const; Lang: TGMLang); reintroduce; overload; virtual;

Description

Methods

Public constructor Create(const Msg: string; const Args: array of const; Lang: TGMLang); reintroduce; overload; virtual;

Constructor class.

Parameters
Msg
Message to show translation (must be in English).
Args
Array of arguments to apply to the message.
Lang
Language to translate.
Public constructor Create(const Idx: Integer; const Args: array of const; Lang: TGMLang); reintroduce; overload; virtual;

Constructor class.

Parameters
Idx
Index of array languages.
Args
Array of arguments to apply to the message.
Lang
Language to translate.

Generated by PasDoc 0.15.0.