pystclient.exception

Custom exceptions for pystclient.

Exceptions

APIResponseError(resp)

Exception raised for API response errors.

ConfigurationNotFoundError(*args, **kwargs)

Exception raised when a configuration is not found.

FmuModelNotFoundError(*args, **kwargs)

Exception raised when an FMU model is not found.

MalformedConnectionsError(*args, **kwargs)

Exception raised when connections data is malformed.

MissingVariablesError(*args, **kwargs)

Exception raised when required variables are missing.

PyStclientError(*args, **kwargs)

Base exception class for pystclient errors.

UnexpectedResponseDataError(*args, **kwargs)

Exception raised when response data is in an unexpected format.

UnknownError(*args, **kwargs)

Exception raised for unknown errors.

exception pystclient.exception.APIResponseError(resp: Response)

Exception raised for API response errors.

status_code

HTTP status code from the response.

Type:

int

code

Error code from the response.

Type:

str

message

Error message from the response.

Type:

str

text

Raw response text.

Type:

str

code: str
message: str
status_code: int
text: str
exception pystclient.exception.ConfigurationNotFoundError(*args: Any, **kwargs: Any)

Exception raised when a configuration is not found.

exception pystclient.exception.FmuModelNotFoundError(*args: Any, **kwargs: Any)

Exception raised when an FMU model is not found.

exception pystclient.exception.MalformedConnectionsError(*args: Any, **kwargs: Any)

Exception raised when connections data is malformed.

exception pystclient.exception.MissingVariablesError(*args: Any, **kwargs: Any)

Exception raised when required variables are missing.

exception pystclient.exception.PyStclientError(*args: Any, **kwargs: Any)

Base exception class for pystclient errors.

exception pystclient.exception.UnexpectedResponseDataError(*args: Any, **kwargs: Any)

Exception raised when response data is in an unexpected format.

exception pystclient.exception.UnknownError(*args: Any, **kwargs: Any)

Exception raised for unknown errors.