DataHubError Type
Base error for every failed DataHub operation. Wraps the raw HTTP status and body so callers get a consistent, cross-language error shape instead of a target-specific HTTP exception.
Constructors
| Constructor |
Description
|
Full Usage:
DataHubError(statusCode, message, body)
Parameters:
int
message : string
body : string
Returns: DataHubError
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.Body
Returns: string
|
The raw response body, preserved for diagnostics.
|
Full Usage:
this.StatusCode
Returns: int
|
The HTTP status code returned by the DataHub.
|
Static members
| Static member |
Description
|
Full Usage:
DataHubError.FromResponse(response)
Parameters:
HttpResponse
-
The failed HTTP response to classify.
Returns: DataHubError
An UnauthorizedError, NotFoundError, RateLimitedError, ServerError, or a plain DataHubError.
|
Maps an unsuccessful HttpResponse to the most specific error subclass.
|
DataHubClient