Type alias YSweetErrorPayload
YSweetErrorPayload: {
address: string;
code: "ServerRefused";
port: number;
url: string;
} | {
code: "ServerError";
message: string;
status: number;
url: string;
} | {
code: "NoAuthProvided";
} | {
code: "InvalidAuthProvided";
} | {
code: "Unknown";
message: string;
}
Type declaration
-
address: string
-
code: "ServerRefused"
-
port: number
-
url: string
Type declaration
-
code: "ServerError"
-
message: string
-
status: number
-
url: string
Type declaration
-
code: "InvalidAuthProvided"
Type declaration
-
code: "Unknown"
-
message: string
Metadata associated with a YSweetError.