public class BasicErrorReporter extends Object implements ErrorReporter
Note that this implementation doesn't distinguish between reportWarning(Object, Report)
and reportDetailed(Object, Report) - they both have the exact same behavior.
| Constructor and Description |
|---|
BasicErrorReporter()
Construct 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
reportDebug(Object sender,
Report.ReportBuilder builder)
Prints a debug message from the current sender.
|
void |
reportDebug(Object sender,
Report report)
Prints a debug message from the current sender.
|
void |
reportDetailed(Object sender,
Report.ReportBuilder reportBuilder)
Prints a detailed error report about an unhandled exception.
|
void |
reportDetailed(Object sender,
Report report)
Prints a detailed error report about an unhandled exception.
|
void |
reportMinimal(org.bukkit.plugin.Plugin sender,
String methodName,
Throwable error)
Prints a small minimal error report regarding an exception from another plugin.
|
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.
|
void |
reportWarning(Object sender,
Report.ReportBuilder reportBuilder)
Prints a warning message from the current plugin.
|
void |
reportWarning(Object sender,
Report report)
Prints a warning message from the current plugin.
|
public BasicErrorReporter()
public BasicErrorReporter(PrintStream output)
output - - the output stream.public void reportMinimal(org.bukkit.plugin.Plugin sender,
String methodName,
Throwable error)
ErrorReporterreportMinimal in interface ErrorReportersender - - the other plugin.methodName - - name of the caller method.error - - the exception itself.public void reportMinimal(org.bukkit.plugin.Plugin sender,
String methodName,
Throwable error,
Object... parameters)
ErrorReporterreportMinimal in interface ErrorReportersender - - the other plugin.methodName - - name of the caller method.error - - the exception itself.parameters - - any relevant parameters to print.public void reportDebug(Object sender, Report report)
ErrorReporterMost users will not see this message.
reportDebug in interface ErrorReportersender - - the sender.report - - the report.public void reportDebug(Object sender, Report.ReportBuilder builder)
ErrorReporterreportDebug in interface ErrorReportersender - - the sender.builder - - the report builder.public void reportWarning(Object sender, Report report)
ErrorReporterreportWarning in interface ErrorReportersender - - the object containing the caller method.report - - an error report to include.public void reportWarning(Object sender, Report.ReportBuilder reportBuilder)
ErrorReporterreportWarning in interface ErrorReportersender - - the object containing the caller method.reportBuilder - - an error report builder that will be used to get the report.public void reportDetailed(Object sender, Report report)
ErrorReporterreportDetailed in interface ErrorReportersender - - the object containing the caller method.report - - an error report to include.public void reportDetailed(Object sender, Report.ReportBuilder reportBuilder)
ErrorReporterreportDetailed in interface ErrorReportersender - - the object containing the caller method.reportBuilder - - an error report builder that will be used to get the report.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.