Package com.comphenix.protocol.error
Class BasicErrorReporter
java.lang.Object
com.comphenix.protocol.error.BasicErrorReporter
- All Implemented Interfaces:
ErrorReporter
Represents a basic error reporter that prints error reports to the standard error stream.
Note that this implementation doesn't distinguish between reportWarning(Object, Report)
and reportDetailed(Object, Report) - they both have the exact same behavior.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new basic error reporter that prints directly the standard error stream.BasicErrorReporter(PrintStream output) Construct a error reporter that prints to the given output stream. -
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.
-
Constructor Details
-
BasicErrorReporter
public BasicErrorReporter()Construct a new basic error reporter that prints directly the standard error stream. -
BasicErrorReporter
Construct a error reporter that prints to the given output stream.- Parameters:
output- - the output stream.
-
-
Method Details
-
reportMinimal
Description copied from interface:ErrorReporterPrints a small minimal error report regarding an exception from another plugin.- Specified by:
reportMinimalin interfaceErrorReporter- Parameters:
sender- - the other plugin.methodName- - name of the caller method.error- - the exception itself.
-
reportMinimal
public void reportMinimal(org.bukkit.plugin.Plugin sender, String methodName, Throwable error, Object... parameters) Description copied from interface:ErrorReporterPrints a small minimal error report regarding an exception from another plugin.- Specified by:
reportMinimalin interfaceErrorReporter- Parameters:
sender- - the other plugin.methodName- - name of the caller method.error- - the exception itself.parameters- - any relevant parameters to print.
-
reportDebug
Description copied from interface:ErrorReporterPrints a debug message from the current sender.Most users will not see this message.
- Specified by:
reportDebugin interfaceErrorReporter- Parameters:
sender- - the sender.report- - the report.
-
reportDebug
Description copied from interface:ErrorReporterPrints a debug message from the current sender.- Specified by:
reportDebugin interfaceErrorReporter- Parameters:
sender- - the sender.builder- - the report builder.
-
reportWarning
Description copied from interface:ErrorReporterPrints a warning message from the current plugin.- Specified by:
reportWarningin interfaceErrorReporter- Parameters:
sender- - the object containing the caller method.report- - an error report to include.
-
reportWarning
Description copied from interface:ErrorReporterPrints a warning message from the current plugin.- Specified by:
reportWarningin interfaceErrorReporter- Parameters:
sender- - the object containing the caller method.reportBuilder- - an error report builder that will be used to get the report.
-
reportDetailed
Description copied from interface:ErrorReporterPrints a detailed error report about an unhandled exception.- Specified by:
reportDetailedin interfaceErrorReporter- Parameters:
sender- - the object containing the caller method.report- - an error report to include.
-
reportDetailed
Description copied from interface:ErrorReporterPrints a detailed error report about an unhandled exception.- Specified by:
reportDetailedin interfaceErrorReporter- Parameters:
sender- - the object containing the caller method.reportBuilder- - an error report builder that will be used to get the report.
-