DioException.badCertificate constructor

DioException.badCertificate({
  1. required RequestOptions requestOptions,
  2. Object? error,
})

Implementation

factory DioException.badCertificate({
  required RequestOptions requestOptions,
  Object? error,
}) =>
    DioException(
      type: DioExceptionType.badCertificate,
      requestOptions: requestOptions,
      response: null,
      error: error,
      message: 'The certificate of the response is not approved.',
    );