Package com.comphenix.protocol.error
Interface ErrorReporter
- All Known Implementing Classes:
BasicErrorReporter,DelegatedErrorReporter,DetailedErrorReporter,RethrowErrorReporter
public interface ErrorReporter
Represents an object that can forward an error
Report to the display and permanent storage.-
Method Summary
Modifier and TypeMethodDescriptionvoidreportDebug(Object sender, Report report) Prints a debug message from the current sender.voidreportDebug(Object sender, Report.ReportBuilder builder) Prints a debug message from the current sender.voidreportDetailed(Object sender, Report report) Prints a detailed error report about an unhandled exception.voidreportDetailed(Object sender, Report.ReportBuilder reportBuilder) Prints a detailed error report about an unhandled exception.voidreportMinimal(org.bukkit.plugin.Plugin sender, String methodName, Throwable error) Prints a small minimal error report regarding an exception from another plugin.voidreportMinimal(org.bukkit.plugin.Plugin sender, String methodName, Throwable error, Object... parameters) Prints a small minimal error report regarding an exception from another plugin.voidreportWarning(Object sender, Report report) Prints a warning message from the current plugin.voidreportWarning(Object sender, Report.ReportBuilder reportBuilder) Prints a warning message from the current plugin.
-
Method Details
-
reportMinimal
Prints a small minimal error report regarding an exception from another plugin.- Parameters:
sender- - the other plugin.methodName- - name of the caller method.error- - the exception itself.
-
reportMinimal
void reportMinimal(org.bukkit.plugin.Plugin sender, String methodName, Throwable error, Object... parameters) Prints a small minimal error report regarding an exception from another plugin.- Parameters:
sender- - the other plugin.methodName- - name of the caller method.error- - the exception itself.parameters- - any relevant parameters to print.
-
reportDebug
Prints a debug message from the current sender.Most users will not see this message.
- Parameters:
sender- - the sender.report- - the report.
-
reportDebug
Prints a debug message from the current sender.- Parameters:
sender- - the sender.builder- - the report builder.
-
reportWarning
Prints a warning message from the current plugin.- Parameters:
sender- - the object containing the caller method.report- - an error report to include.
-
reportWarning
Prints a warning message from the current plugin.- Parameters:
sender- - the object containing the caller method.reportBuilder- - an error report builder that will be used to get the report.
-
reportDetailed
Prints a detailed error report about an unhandled exception.- Parameters:
sender- - the object containing the caller method.report- - an error report to include.
-
reportDetailed
Prints a detailed error report about an unhandled exception.- Parameters:
sender- - the object containing the caller method.reportBuilder- - an error report builder that will be used to get the report.
-