FailureException constructor
FailureException({})
Creates a FailureException.
Provide user-friendly error messages and hints if possible.
Provide a reason and causing exception if available which aids in testing and debugging.
Implementation
FailureException({
String? error,
Iterable<String>? errors,
this.hint,
this.reason,
this.nestedException,
this.nestedStackTrace,
}) : errors = [?error, ...?errors],
super.error();