ProxyInvalidResponseError class

Error thrown when a proxy returns an invalid response

Inheritance

Constructors

ProxyInvalidResponseError.new({required String host, required int port, int? statusCode, Object? cause, String? message, ProxyErrorType type = ProxyErrorType.invalidResponse, bool? isRetryable})
Creates a new ProxyInvalidResponseError
const
ProxyInvalidResponseError.httpError({required String host, required int port, required int statusCode, Object? cause, String? message, bool? isRetryable})
Creates a new ProxyInvalidResponseError for HTTP errors
factory
ProxyInvalidResponseError.invalidContentLength({required String host, required int port, int? statusCode, Object? cause, String? message, bool? isRetryable})
Creates a new ProxyInvalidResponseError for invalid content length
factory
ProxyInvalidResponseError.invalidHeaders({required String host, required int port, int? statusCode, Object? cause, String? message, bool? isRetryable})
Creates a new ProxyInvalidResponseError for invalid headers
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 returned the invalid response
final
isRetryable bool
Whether this error is retryable
finalinherited
message String
The error message
finalinherited
port int
The port that returned the invalid response
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The status code of the response
final
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