error abstract method

void error(
  1. IContext? context,
  2. Exception? error,
  3. String message, [
  4. List? args,
])

Logs recoverable application error.

  • context (optional) a context to trace execution through call chain.
  • error an error object associated with this message.
  • message a human-readable message to log.
  • args arguments to parameterize the message.

Implementation

void error(IContext? context, Exception? error, String message, [List? args]);