Start of trail qc_get_error_names navigation bar

Table of Contents

qc_get_error_message

Gets the error message corresponding to an error code.

Syntax

message = qc_get_error_message(locale, code)    % Get the message for the error code in the specified locale
message = qc_get_error_message(code)            % Get the message for the error code in the current locale
    

Description

Returns the error message corresponding to the given error code. If the locale argument is specified then it returns the error message in the given locale, if possible.

If the code is non-negative then an empty string is returned. Otherwise the corresponding error message is returned.

Parameters

locale

A string indicating the locale. eg. 'English_United States.1252'

code

A negative error code returned by one of the QUARC functions.

Outputs

message

A string containing the error message or an empty string if the given error code is non-negative.

Examples

message = qc_get_error_message(-4); % Returns the error message for error code -4
    

See Also

 

navigation bar