Heroku LangChain - v0.2.1
    Preparing search index...

    Class HerokuApiError

    Custom error class for Heroku API errors.

    This error class provides structured error information for debugging and error handling, including HTTP status codes and raw error responses from the Heroku API.

    try {
    // API call that might fail
    await makeHerokuApiCall();
    } catch (error) {
    if (error instanceof HerokuApiError) {
    console.error(`Heroku API Error ${error.status}: ${error.message}`);
    console.error("Raw response:", error.errorResponse);
    }
    }

    Hierarchy

    • Error
      • HerokuApiError
    Index

    Constructors

    Properties

    Constructors

    • Creates a new HerokuApiError instance.

      Parameters

      • message: string

        Human-readable error message

      • Optionalstatus: number

        HTTP status code from the API response (optional)

      • OptionalerrorResponse: any

        Raw error response from the API for debugging (optional)

      Returns HerokuApiError

    Properties

    status?: number

    HTTP status code from the API response (optional)

    errorResponse?: any

    Raw error response from the API for debugging (optional)