Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/windmill-api/apis/exception.ts>ApiException

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class ApiException
extends Error
import { ApiException } from "https://deno.land/x/windmill@v1.38.0/windmill-api/apis/exception.ts";

Represents an error caused by an api call i.e. it has attributes for a HTTP status code and the returned body object.

Example API returns a ErrorMessageObject whenever HTTP status code is not in [200, 299] => ApiException(404, someErrorMessageObject)

Constructors

new
ApiException(
code: number,
message: string,
body: T,
headers: { [key: string]: string; },
)