Namespace: BhrSdk\Exceptions
Extends: ApiException
Base class for all client-side (4xx) exceptions.
try {
// API call that might fail with a 4xx status code
} catch (BhrSdk\Exceptions\ClientException $e) {
// Handle any client error exception
echo $e->getMessage();
// Get status code
$statusCode = $e->getCode(); // Will be a 4xx code
}public function __construct(
string $message = ""
)| Name | Type | Description |
|---|---|---|
$message |
string | The error message |
The following specific exception types extend ClientException: