Menu

Error Handling

Mark Newnham

Error handling is controlled by the setErrorLevel method. The class supports error levels

Level Value Description
GCHARTTOOL_ERROR_IGNORE 0 Ignores any errors found in the chart data. The chart may fail to display with or without errors.
GCHARTTOOL_ERROR_WARN 1 Saves any errors that occur on validation. The last error is displayed when the chart is displayed. The chart may fail to display with or without errors.
GCHARTTOOL_ERROR_STOP 2 The class stops immediately, displaying the error as well as a dump of the chart class.

Public Methods Associated With Error Handling

Method Parameters Description
getErrorLevel Gets the currently set error level
getLastError Gets the last error message
setErrorLevel level Sets the error level for the chart validation. See the information above for the effect of setting the error level.

Related

Wiki: The gChartTool Class

MongoDB Logo MongoDB