CommandPermissionDeniedException

class CommandPermissionDeniedException(commandSender: CommandSender, command: Command) : RuntimeException

CommandManager.executeCommand 中, CommandSender 未拥有 Command.permission 所要求的权限时抛出的异常.

总是作为 CommandExecutionException.cause.

Constructors

CommandPermissionDeniedException
Link copied to clipboard
fun CommandPermissionDeniedException(commandSender: CommandSender, command: Command)

Functions

addSuppressed
Link copied to clipboard
fun addSuppressed(p0: Throwable)
fillInStackTrace
Link copied to clipboard
open fun fillInStackTrace(): Throwable
getLocalizedMessage
Link copied to clipboard
open fun getLocalizedMessage(): String
getStackTrace
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
getSuppressed
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
initCause
Link copied to clipboard
open fun initCause(p0: Throwable): Throwable
printStackTrace
Link copied to clipboard
open fun printStackTrace()
open fun printStackTrace(p0: PrintStream)
open fun printStackTrace(p0: PrintWriter)
setStackTrace
Link copied to clipboard
open fun setStackTrace(p0: Array<StackTraceElement>)
toString
Link copied to clipboard
open override fun toString(): String

Properties

cause
Link copied to clipboard
open val cause: Throwable?
command
Link copied to clipboard
val command: Command

执行过程发生异常的指令

commandSender
Link copied to clipboard
val commandSender: CommandSender

执行者

message
Link copied to clipboard
open val message: String?