Skip to main content

CotomyApiException

Base exception for API errors.

Constructor

  • new CotomyApiException(status, message, response, bodyText?) Creates an error with HTTP status, message, response wrapper, and optional body text.

Properties

PropertyTypeDescription
statusnumberHTTP status code.
messagestringError message.
responseCotomyApiResponseAssociated response wrapper.
bodyTextstringRaw response body text (if captured).