ErrorCodeException constructor

const ErrorCodeException({
  1. required String message,
  2. Object? code,
})

Creates a new instance of the ErrorCodeException class.

The message parameter is required, while the code parameter is optional.

Implementation

const ErrorCodeException({
  required this.message,
  this.code,
});