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 Details

    • reportMinimal

      void reportMinimal(org.bukkit.plugin.Plugin sender, String methodName, Throwable error)
      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

      void reportDebug(Object sender, Report report)
      Prints a debug message from the current sender.

      Most users will not see this message.

      Parameters:
      sender - - the sender.
      report - - the report.
    • reportDebug

      void reportDebug(Object sender, Report.ReportBuilder builder)
      Prints a debug message from the current sender.
      Parameters:
      sender - - the sender.
      builder - - the report builder.
    • reportWarning

      void reportWarning(Object sender, Report report)
      Prints a warning message from the current plugin.
      Parameters:
      sender - - the object containing the caller method.
      report - - an error report to include.
    • reportWarning

      void reportWarning(Object sender, Report.ReportBuilder reportBuilder)
      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

      void reportDetailed(Object sender, Report report)
      Prints a detailed error report about an unhandled exception.
      Parameters:
      sender - - the object containing the caller method.
      report - - an error report to include.
    • reportDetailed

      void reportDetailed(Object sender, Report.ReportBuilder reportBuilder)
      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.