Package com.comphenix.protocol.error
Class PluginContext
java.lang.Object
com.comphenix.protocol.error.PluginContext
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringRetrieve the name of the plugin that called the last method(s) in the exception.static StringgetPluginName(StackTraceElement element) Lookup the plugin that this method invocation belongs to, and return its file name.
-
Method Details
-
getPluginCaller
Retrieve the name of the plugin that called the last method(s) in the exception.- Parameters:
ex- - the exception.- Returns:
- The name of the plugin, or NULL.
-
getPluginName
Lookup the plugin that this method invocation belongs to, and return its file name.- Parameters:
element- - the method invocation.- Returns:
- Plugin name, or NULL if not found.
-