BaseException constructor

BaseException({
  1. bool silent = false,
  2. List<String> messages = const [],
  3. DioException? exception,
})

Creates a new instance of BaseException.

The silent parameter indicates whether the exception should be treated as silent. The messages parameter allows the user to provide a list of error messages, and the exception parameter can hold a DioException if available.

Implementation

BaseException({
  this.silent = false,
  this.messages = const [],
  this.exception,
});