AuraConnectionError
Thrown when the request never reached a server — connection refused, DNS miss, TLS failure. Distinct from AuraResponseError: there is no response to have misread.
url is the request’s own target rather than the client’s base URL, because a
byte upload goes to a storage host the base URL does not name.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AuraConnectionError( message, url, code?, cause?): AuraConnectionError;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
message |
string |
url |
string |
code? |
string |
cause? |
unknown |
Returns
Section titled “Returns”AuraConnectionError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”| Property | Modifier | Type | Description |
|---|---|---|---|
code |
readonly |
string | undefined |
The OS-level reason when the runtime exposed one, e.g. ECONNREFUSED. |
url |
readonly |
string |
The URL the request was sent to. |