LoggableExceptionDiagnosisReporter class final

An implementation of ExceptionDiagnosisReporter that outputs structured exception diagnosis information using the JetLeaf logging system.

This reporter is designed to be used during application startup and other critical phases where exceptions must be clearly visible and actionable. It automatically logs diagnostic output at:

  • DEBUG level — includes the raw exception (diagnosis.cause)
  • ERROR level — includes a formatted diagnostic report with description and optional recommended action

The output is intentionally verbose and uses clear formatting blocks to improve readability within console logs, log files, or remote aggregators.

Example

final reporter = LoggableExceptionDiagnosisReporter();
final diagnosis = ExceptionDiagnosis(
  cause: Exception("Database connection failed"),
  description: "The application could not connect to the database.",
  action: "Check connection settings and ensure the database is running."
);

reporter.report(diagnosis);

This will emit a diagnostic block similar to:

*********************************************************************************
APPLICATION ERROR DIAGNOSED
*********************************************************************************

Description:

The application could not connect to the database.

Action:

Check connection settings and ensure the database is running.
Implemented types

Constructors

LoggableExceptionDiagnosisReporter()
An implementation of ExceptionDiagnosisReporter that outputs structured exception diagnosis information using the JetLeaf logging system.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
report(ExceptionDiagnosis diagnosis) → void
Reports the given ExceptionDiagnosis using the reporter’s output mechanism.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited