ActionResult.failed constructor

const ActionResult.failed(
  1. dynamic error, [
  2. StackTrace? stackTrace
])

creates the FailedResult error is the Error/Exception fails the action stackTrace indicates where the error was thrown, it is optional

Implementation

const factory ActionResult.failed(dynamic error, [StackTrace? stackTrace]) =
    _Failed;