Exceptions¶
All exceptions raised by the IVCAP Client SDK. Import them from
ivcap_client.exception.
Quick Reference¶
from ivcap_client.exception import (
IvcapError, # base class
IvcapApiError, # HTTP errors (.status_code, .operation)
NotAuthorizedException, # 401/403
ResourceNotFound, # 404
AmbiguousRequest, # multiple matches for get_service_by_name
MissingParameterValue, # missing required parameter
)
Hierarchy¶
Exception
├── IvcapError
│ └── IvcapApiError
│ ├── NotAuthorizedException
│ └── HttpException (backward-compat alias)
├── ResourceNotFound
├── AmbiguousRequest
└── MissingParameterValue
Note
ResourceNotFound, AmbiguousRequest, and MissingParameterValue inherit
directly from the built-in Exception, not from IvcapError. Catch
IvcapError to handle HTTP/API errors only; use individual exception types
(or the base Exception) when you also need to catch these.
Exception Documentation¶
exception
¶
IvcapError
¶
IvcapApiError
dataclass
¶
Bases: IvcapError
Represents an HTTP error returned by the IVCAP API.
This exception is intended to be raised by the core convenience layer.
The generated ivcap_client.api.* functions may raise
ivcap_client.errors.UnexpectedStatus instead.
Source code in ivcap_client/exception.py
NotAuthorizedException
¶
Bases: IvcapApiError
Raised when the request is not authorized (typically HTTP 401/403).
Source code in ivcap_client/exception.py
ResourceNotFound
¶
Bases: Exception
Exception raised when requestred resource is not found.
Attributes:
| Name | Type | Description |
|---|---|---|
resource |
name or URN of missing resource |
Source code in ivcap_client/exception.py
AmbiguousRequest
¶
Bases: Exception
Exception raised when request is not specific enough.
Attributes:
| Name | Type | Description |
|---|---|---|
message |
cause for ambiguity |
Source code in ivcap_client/exception.py
HttpException
dataclass
¶
Bases: IvcapApiError
Backward compatible alias for :class:IvcapHttpError.