ProxyConnectionError class

Error thrown when a proxy connection fails

Inheritance

Constructors

ProxyConnectionError.new({required String host, required int port, Object? cause, String? message, ProxyErrorType type = ProxyErrorType.connectionError, bool? isRetryable})
Creates a new ProxyConnectionError
const
ProxyConnectionError.connectionReset({required String host, required int port, Object? cause, String? message, bool? isRetryable})
Creates a new ProxyConnectionError for a connection reset
factory
ProxyConnectionError.dnsError({required String host, required int port, Object? cause, String? message, bool? isRetryable})
Creates a new ProxyConnectionError for a DNS error
factory
ProxyConnectionError.sslError({required String host, required int port, Object? cause, String? message, bool? isRetryable})
Creates a new ProxyConnectionError for an SSL error
factory

Properties

cause Object?
The underlying error that caused this error
finalinherited
hashCode int
The hash code for this object.
no setterinherited
host String
The host that was being connected to
final
isRetryable bool
Whether this error is retryable
finalinherited
message String
The error message
finalinherited
port int
The port that was being connected to
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ProxyErrorType
The error type
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited