GlobalExceptionHandlerContext
data class GlobalExceptionHandlerContext(val adviceInstance: Any, val handlerMethod: Method, val commandSenderIndex: Int?, val executedArgIndex: Int?, val commandArgIndex: Int?, val valuesIndex: Int?, val exceptionIndex: Int?)
Defines the context required to execute a VitalCommand.GlobalExceptionHandler annotated function.
Constructors
Properties
Functions
Link copied to clipboard
fun VitalCommand.GlobalExceptionHandlerContext.getInjectableGlobalExceptionHandlerMethodParameters(sender: Any, executedArg: String, commandArg: VitalCommand.Arg?, exception: Throwable): Array<Any?>
Internal function to correctly sort all injectable function parameters for a global exception handler and return them as an Array, so they can later be used to call their appropriate mapped global exception handler function.