MCCoroutineExceptionEvent

class MCCoroutineExceptionEvent(plugin: <ERROR CLASS>, 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

MCCoroutineExceptionEvent
Link copied to clipboard
fun MCCoroutineExceptionEvent(plugin: <ERROR CLASS>, exception: Throwable)

Functions

getResult
Link copied to clipboard
open fun getResult(): <ERROR CLASS>

Returns the result associated with this event.

setResult
Link copied to clipboard
open fun setResult(result: <ERROR CLASS>)

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

Properties

exception
Link copied to clipboard
val exception: Throwable

The exception to be logged.

plugin
Link copied to clipboard
val plugin: <ERROR CLASS>

Plugin causing the exception.