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