MCCoroutineExceptionEvent

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

A Velocity 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 getResult(): <Error class: unknown class>

Returns the result associated with this event.

Link copied to clipboard
open fun setResult(result: <Error class: unknown class>)

Sets the result of this event. The result must be non-null.