YieldApiBadRequest

class YieldApiBadRequest(val rawBody: String, message: String, cause: Throwable? = null) : PortalException.Api.HttpBadRequest

Thrown when the Yield API returns a 400 Bad Request error.

Now extends HttpBadRequest for semantic alignment: callers that catch HttpBadRequest automatically catch YieldApiBadRequest too. The deprecated single-arg constructor preserves source compatibility for external callers that constructed this directly with only a message.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)
constructor(rawBody: String, message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard

The raw 400 response body, useful for debugging or parsing structured backend error envelopes.