Skip to content

DrawingExceptionMode

Namespace: ThinkGeo.Core

Specifies how exceptions that occur during drawing are handled and displayed.

public enum DrawingExceptionMode

Inheritance ObjectValueTypeEnumDrawingExceptionMode
Implements IComparable, IFormattable, IConvertible

Fields

Name Value Description
Default 3 [Obsolete] Default mode used in the MapSuite component.
Note: This value is deprecated and will be removed after v14.4.
Use one of the following modes instead:
, , or .
DrawAndThrowException 0 In this mode, if an exception occurs during drawing, it is first rendered on the canvas,
and then the exception is rethrown. This allows the calling code to catch
and handle the exception after it has been visually indicated.
DrawException 1 In this mode, an exception is caught and an error is drawn on the canvas to indicate that something went wrong.
However, the exception is not propagated to the calling code, meaning that the user cannot catch or handle it.
This mode is useful when you want to display error information without interrupting the overall program flow.
It could bring in issues if the layer is used in an overlay with tileCache enabled – the cache tile could generate
incorrect tiles without being noticed.
ThrowException 2 In this mode, an exception is caught and an error is drawn on the canvas to indicate that something went wrong.
However, the exception is not propagated to the calling code, meaning that the user cannot catch or handle it.
This mode is useful when you want to display error information without interrupting the overall program flow.