MCCoroutineExceptionEvent

class MCCoroutineExceptionEvent(val plugin: <Error class: unknown class>, val exception: Throwable)

A BungeeCord event which is called when an exception is raised in one of the coroutines managed by MCCoroutine. Cancelling this exception causes the error to not get logged and offers to possibility for custom logging.

Constructors

Link copied to clipboard
constructor(plugin: <Error class: unknown class>, exception: Throwable)

Properties

Link copied to clipboard

The exception to be logged.

Link copied to clipboard
val plugin: <Error class: unknown class>

Plugin causing the exception.

Functions

Link copied to clipboard
open fun isCancelled(): Boolean

Gets if this event is cancelled.

Link copied to clipboard
open fun setCancelled(flag: Boolean)

Sets the event as cancelled or not. If the event is cancelled the exception is seen as an uncaught exception. Do only cancel this event if you want to log the exceptions on your own.