UserExceptionAction<St> constructor

UserExceptionAction<St>(
  1. String msg, {
  2. Object? cause,
  3. ExceptionCode? code,
})

Implementation

UserExceptionAction(
  /// Some message shown to the user.
  String msg, {

  /// The cause of the user-exception. Usually another error.
  Object? cause,

  /// The error may have some code. This may be used for error message
  /// translations, and also to simplify receiving errors from web-services,
  /// cloud-functions etc.
  ExceptionCode? code,
}) : this.from(UserException(msg, cause: cause, code: code));