CertificatePinningException constructor

const CertificatePinningException({
  1. String? message,
  2. DioException? originalException,
  3. String? errorCode,
  4. String? traceId,
})

Creates a CertificatePinningException with an optional custom message.

Implementation

const CertificatePinningException({String? message, super.originalException, super.errorCode, super.traceId})
  : super(
      message:
          message ??
          "A secure connection could not be established. To protect your data, this request has been blocked. Please check your network or try again later.",
    );