qc_get_error_names End of trail navigation bar

Table of Contents

qc_error

Issues the error corresponding to an error code.

Syntax

qc_error(msgid, locale, code) % Issue the error for the given code in the specified locale
qc_error(msgid, code)         % Issue the error for the given code in the current locale
qc_error(locale, code)        % Issue the error for the given code in the specified locale
qc_error(code)                % Issue the error for the given code in the current locale
    

Description

Issues the error corresponding to the given error code, as if

error

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

doc error
had been called with the error message and optional message identifier, msgid. If the locale argument is specified then it issues the error in the language appropriate for the given locale, if possible.

If the code is non-negative then no error is issued. Otherwise the corresponding error is issued.

Parameters

msgid

An optional string indicating a message identifier e.g. 'QUARC:cannotLoadModel'

locale

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

code

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

Outputs

This function has no outputs.

Examples

qc_error(result);   % Issue an error message if the result indicates an error
    

See Also

 

navigation bar