Navigation

Operators and Keywords

Function List:

C++ API

: h = errordlg ()
: h = errordlg (msg)
: h = errordlg (msg, title)
: h = errordlg (msg, title, createmode)

Display an error dialog box with error message msg and caption title.

The default error message is "This is the default error string." and the default caption is "Error Dialog".

The error message may have multiple lines separated by newline characters ("\n"), or it may be a cellstr array with one element for each line.

The return value h is always 1.

Compatibility Note: The optional argument createmode is accepted for MATLAB compatibility, but is not implemented. See msgbox for details.

Examples:

errordlg ("Some fancy error occurred.");
errordlg ("Some fancy error\nwith two lines.");
errordlg ({"Some fancy error", "with two lines."});
errordlg ("Some fancy error occurred.", "Fancy caption");

See also: helpdlg, inputdlg, listdlg, msgbox, questdlg, warndlg.

Package: octave