Exceptions

object Exceptions

OpMode "userspace" util to prevent user-code unhandled exceptions from crashing the app.

This will log the exception and stacktrace to the Driver Station, allowing OpModes to continue running. In the past, exceptions used to cause an EMERGENCY STOP condition, but has changed to a more modern popup window, however, this class is still useful as it will not terminate the OpMode and will allow code to continue while providing full logging in both Logcat and the Driver Station.

Since

1.0.0-pre

Properties

Link copied to clipboard

Maximum number of characters to display in the stacktrace on the Driver Station.

Link copied to clipboard

Exceptions thrown since the last reset of this set.

Functions

Link copied to clipboard

Get the calling user code function of the current context by looking at the stacktrace until it leaves BunyipsLib.

Link copied to clipboard

Handle an exception, logging it to the Driver Station and Logcat.

Link copied to clipboard

Handle and run a single user-controlled method by wrapping the execution with an Exceptions.handle().