Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Types

Link copied to clipboard

Internal exception; thrown when an exception occurs while a VitalCommand tries to execute an arg exception handler function.

Link copied to clipboard

Internal exception; thrown when an exception occurs while a VitalCommand tries to execute a global exception handler function.

Internal exception; thrown when an arg exception handler function was defined with an invalid or not-supported signature. This exception is thrown directly when Vital starts up to reduce more runtime errors.

Link copied to clipboard

Internal exception; thrown when an arg handler function was defined with an invalid or not-supported parameter signature. This exception is thrown directly when Vital starts up to reduce more runtime errors.

Link copied to clipboard

Internal exception; thrown when an arg handler function was defined with an invalid or not-supported return type signature. This exception is thrown directly when Vital starts up to reduce more runtime errors.

Internal exception; thrown when a global exception handler function was defined with an invalid or not-supported signature. This exception is thrown directly when Vital starts up to reduce more runtime errors.

Link copied to clipboard
class Register(commandClass: Class<out VitalCommand<*>>, cause: Throwable) : VitalCommandException

Internal exception; thrown when an exception occurs while registering a command.

Link copied to clipboard

Internal exception; thrown when an arg exception handler was mapped to a non-existing arg / arg handler name. This exception is thrown directly when Vital starts up to reduce more runtime errors.

Link copied to clipboard

Internal exception; thrown when no arg handler was found during VitalCommand execution.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?

Functions

Link copied to clipboard

Extracts the first non-InvocationTargetException from the given Throwable. This function will be used during exception handling to extract the actual exception that occurred.