MapControl.OnError Method
This element is not available using the selected API.
This element is not available using the selected API.
In this article
Called when an operation raises an exception.
The Thread Access Verifier will enforce this rule when it is active.
public:
virtual void onError (
const String& message
)
MapControl errors are raised when problems in the Carmenta Engine kernel occur due to changes in the MapControl. These changes can originate from your code when setting the properties of the MapControl, but they can also happen when a user uses the tool of the MapControl to interact with the map.
When the MapControl uses the Carmenta Engine kernel and an exception occurs, the default behavior is to re-throw exceptions. You can override this method if you want to suppress this behavior, for example if you want to send the errors to an application log or display a custom error dialog.
Windows, Linux, Android
In this article
This element is not available using the selected API.
In this article
This element is not available using the selected API.
In this article