Set CurrentErrorMessage

CurrentErrorMessage

The predefined string parameter CurrentErrorMessage contains a description of the last runtime error that occurred during the execution of an AIMMS model.

StringParameter CurrentErrorMessage;

Definition

The string parameter CurrentErrorMessage contains a description of the last runtime error that occurred during the execution of an AIMMS model. It also contains the error message associated with errors occurring in AIMMS interface functions.

Updatability

The value of CurrentErrorMessage can be modified programmatically from within an AIMMS model. Its value cannot be modified from within the end-user interface.

Note

  • AIMMS never clears the contents CurrentErrorMessage, but only updates its value whenever an error occurs.

  • When AIMMS is called through the AIMMS API, CurrentErrorMessage is the only way to retrieve a description of the last AIMMS runtime error when an execution request failed.

See also

Error handling in the AIMMS API is discussed in more detail in Passing Errors and Messages of the Language Reference.