## `prog::error` -- error message and internal error number

#### Introduction

`prog::error` converts an internal error number into the corresponding message and vice versa.

#### Call(s)

`prog::error(number)`
`prog::error(message)`

#### Parameters

`number` | - | an integer internal error number
`message` | - | an error message as string

#### Returns

a string with the error message or an integer internal error number

#### Related Functions

`error`, `warning`, `traperror`, `lasterror`

#### Details

- `prog::error` converts an internal error number into the corresponding message and vice versa.

#### Example 1

The corresponding message to the internal error number `1010` is:

    >> prog::error(1010)

                              "Recursive definition"

The error message `"Division by zero"` has the internal number:

    >> prog::error("Division by zero")

                                       1025

#### Changes

- new function

Do you have questions or comments?
Copyright © SciFace Software GmbH & Co. KG 2000