Package de.Keyle.MyPet.api.util
Class ErrorUtil
java.lang.Object
de.Keyle.MyPet.api.util.ErrorUtil
Utility class for centralized error reporting.
Handles logging to console and automatic Sentry error reporting.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidReports an error with SEVERE level and custom message.static voidReports an error with SEVERE level.static voidreportError(String message, Throwable e) Reports an error-level error with custom message.static voidReports an error-level error.static voidreportSevere(String message, Throwable e) Reports a severe-level error with custom message.static voidReports a severe-level error.static voidreportWarning(String message, Throwable e) Reports a warning-level error with custom message.static voidReports a warning-level error.
-
Method Details
-
report
Reports an error with SEVERE level. Logs to console with full stack trace and sends to Sentry if enabled.- Parameters:
e- the exception to report
-
report
Reports an error with SEVERE level and custom message. Logs to console with full stack trace and sends to Sentry if enabled.- Parameters:
message- custom error messagee- the exception to report
-
reportWarning
Reports a warning-level error. Logs to console with full stack trace and sends to Sentry if enabled.- Parameters:
e- the exception to report
-
reportWarning
Reports a warning-level error with custom message. Logs to console with full stack trace and sends to Sentry if enabled.- Parameters:
message- custom warning messagee- the exception to report
-
reportError
Reports an error-level error. Logs to console with full stack trace and sends to Sentry if enabled.- Parameters:
e- the exception to report
-
reportError
Reports an error-level error with custom message. Logs to console with full stack trace and sends to Sentry if enabled.- Parameters:
message- custom error messagee- the exception to report
-
reportSevere
Reports a severe-level error. Logs to console with full stack trace and sends to Sentry if enabled.- Parameters:
e- the exception to report
-
reportSevere
Reports a severe-level error with custom message. Logs to console with full stack trace and sends to Sentry if enabled.- Parameters:
message- custom error messagee- the exception to report
-