Show / Hide Table of Contents

Method print.warning(+ 1 overload)


Overload

Writes a warning text to the output. By default appends the stack trace.

public static void warning(string text, int showStackFromThisFrame = 0, string prefix = "<>Warning: ")
Parameters
text  (string)

Warning text.

showStackFromThisFrame  (int)

If >= 0, appends the stack trace, skipping this number of frames. Default 0. Does not append if text looks like a stack trace.

prefix  (string)

Text before text. Default "<>Warning: ".

Remarks

Calls print.it. Does not show more than 1 warning/second, unless opt.warnings.Verbose == true (see OWarnings.Verbose). To disable some warnings, use code opt.warnings.Disable("warning text wildcard"); (see OWarnings.Disable).

See Also

OWarnings

Overload(top)

Writes an exception warning to the output.

public static void warning(Exception e, string prefix = "<>Warning: ")
Parameters
e  (Exception)
prefix  (string)

Text before text. Default "<>Warning: ".

Remarks

Calls print.it. Does not show more than 1 warning/second, unless opt.warnings.Verbose == true (see OWarnings.Verbose). To disable some warnings, use code opt.warnings.Disable("warning text wildcard"); (see OWarnings.Disable).

See Also

OWarnings