public enum PluginLoadResult extends Enum<PluginLoadResult>
Enum Constant and Description |
---|
DEPENDENCY_NOT_FOUND
プラグインの依存関係が読み込まれていない
|
ENABLE_PLUGIN_FAILED
その他のエラーでプラグインを有効にできなかった
|
EXCEPTION_ON_ONLOAD_HANDLING
Plugin.onLoad() の実行中に例外が発生した |
FILE_NOT_FOUND
ファイルが存在しない
|
INVALID_PLUGIN_DESCRIPTION
plugin.yml が不適切 |
INVALID_PLUGIN_FILE
プラグインのファイルが間違っている(メインクラスが存在しない等)
|
OK
正常
|
Modifier and Type | Method and Description |
---|---|
static PluginLoadResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PluginLoadResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
PluginLoadResult |
withException(@NotNull Exception exception) |
public static final PluginLoadResult OK
public static final PluginLoadResult FILE_NOT_FOUND
public static final PluginLoadResult INVALID_PLUGIN_DESCRIPTION
plugin.yml
が不適切public static final PluginLoadResult INVALID_PLUGIN_FILE
public static final PluginLoadResult DEPENDENCY_NOT_FOUND
public static final PluginLoadResult EXCEPTION_ON_ONLOAD_HANDLING
Plugin.onLoad()
の実行中に例外が発生したpublic static final PluginLoadResult ENABLE_PLUGIN_FAILED
public static PluginLoadResult[] values()
for (PluginLoadResult c : PluginLoadResult.values()) System.out.println(c);
public static PluginLoadResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic PluginLoadResult withException(@NotNull @NotNull Exception exception)
Copyright © 2023. All rights reserved.