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.new(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 all pins for the domain have expired.
no setter
- isConfigurationValidationFailed → bool
-
Returns true if configuration validation failed.
no setter
- isDomainNotRegistered → bool
-
Returns true if domain is not registered (strict mode only).
no setter
- isErrorFetchingPinningInfo → bool
-
Returns true if this is a network/CDN fetch error.
no setter
- isInvalidProjectConfig → bool
-
Returns true if this is an invalid project configuration error.
no setter
- isInvalidServerCert → bool
-
Returns true if this is an invalid certificate format error.
no setter
- isJwsValidationFailed → bool
-
Returns true if JWS signature validation failed.
no setter
- isPinsMismatch → bool
-
Returns true if certificate doesn't match any configured pins.
no setter
- isTlsHandshakeFailed → bool
-
Returns true if TLS handshake failed.
no setter
- isTlsValidationFailed → bool
-
Returns true if standard TLS validation failed.
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