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

# Class EGMException

Description
Hierarchy
Fields
Methods
Properties

## Unit

GMLib.Exceptions

## 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

- TObject
- Exception
- EGMException

## Overview

### Methods

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

## Description

### Methods

| `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.

| `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.