TrustPinException class
Exception thrown by TrustPin operations.
This exception provides detailed error information for certificate validation failures and configuration issues. Use the convenience getters to check for specific error types programmatically.
- Implemented types
Constructors
- TrustPinException(String code, String message, [dynamic details])
-
Creates a new TrustPinException with the specified code and message.
const
- TrustPinException.fromPlatformException(dynamic error)
-
Creates a TrustPinException from a platform exception.
factory
Properties
- code → String
-
The error code identifying the type of error.
final
- details → dynamic
-
Additional error details (may be null).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAllPinsExpired → bool
-
Returns true if no usable pins remain for the given domain.
no setter
- isConfigurationValidationFailed → bool
-
Returns true if the configuration was rejected.
no setter
- isDomainNotRegistered → bool
-
Returns true if the domain is not configured (strict mode only).
no setter
- isErrorFetchingPinningInfo → bool
-
Returns true if pinning information could not be retrieved.
no setter
- isFetchCertificateTimeout → bool
-
Returns true if a certificate fetch exceeded its timeout.
no setter
- isInvalidProjectConfig → bool
-
Returns true for an invalid project configuration error.
no setter
- isInvalidServerCert → bool
-
Returns true if the supplied certificate could not be parsed.
no setter
- isPinsMismatch → bool
-
Returns true if the certificate was rejected for the given domain.
no setter
- message → String
-
Human-readable error message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited