CommentsApiException constructor

CommentsApiException(
  1. int statusCode,
  2. String message, {
  3. String? humanMessage,
  4. String? requestId,
  5. Object? details,
})

Builds an exception with the HTTP status code and a stable error code.

  • message is the machine-readable error code (e.g. invalid_binding).
  • humanMessage is an optional user-facing/server-provided message.
  • requestId is an optional correlation id to locate server logs.
  • details is optional structured payload (kept for debugging).

Implementation

CommentsApiException(
  this.statusCode,
  this.message, {
  this.humanMessage,
  this.requestId,
  this.details,
});