tensorbay.exception¶
TensorBay cutoms exceptions.
The class hierarchy for TensorBay custom exceptions is:
+-- TensorBayException
+-- ClientError
+-- StatusError
+-- DatasetTypeError
+-- FrameError
+-- ResponseError
+-- AccessDeniedError
+-- InvalidParamsError
+-- NameConflictError
+-- RequestParamsMissingError
+-- ResourceNotExistError
+-- ResponseSystemError
+-- UnauthorizedError
+-- UtilityError
+-- AttrError
+-- TBRNError
+-- OpenDatasetError
+-- NoFileError
+-- FileStructureError
- exception tensorbay.exception.TensorBayException[source]¶
Bases:
Exception
This is the base class for TensorBay custom exceptions.
- exception tensorbay.exception.ClientError[source]¶
Bases:
tensorbay.exception.TensorBayException
This is the base class for custom exceptions in TensorBay client module.
- exception tensorbay.exception.StatusError(is_draft: Optional[bool] = None, message: Optional[str] = None)[source]¶
Bases:
tensorbay.exception.ClientError
This class defines the exception for illegal status.
- Parameters
is_draft – Whether the status is draft.
message – The error message.
- exception tensorbay.exception.DatasetTypeError(dataset_name: str, is_fusion: bool)[source]¶
Bases:
tensorbay.exception.ClientError
This class defines the exception for incorrect type of the requested dataset.
- Parameters
dataset_name – The name of the dataset whose requested type is wrong.
is_fusion – Whether the dataset is a fusion dataset.
- exception tensorbay.exception.FrameError(message: str)[source]¶
Bases:
tensorbay.exception.ClientError
This class defines the exception for incorrect frame id.
- Parameters
message – The error message.
- exception tensorbay.exception.OperationError(message: str)[source]¶
Bases:
tensorbay.exception.ClientError
This class defines the exception for incorrect operation.
- Parameters
message – The error message.
- exception tensorbay.exception.ResponseError(response: requests.models.Response)[source]¶
Bases:
tensorbay.exception.ClientError
This class defines the exception for post response error.
- Parameters
response – The response of the request.
- response¶
The response of the request.
- exception tensorbay.exception.AccessDeniedError(response: requests.models.Response)[source]¶
Bases:
tensorbay.exception.ResponseError
This class defines the exception for access denied response error.
- exception tensorbay.exception.InvalidParamsError(response: Optional[requests.models.Response] = None, *, param_name: Optional[str] = None, param_value: Optional[str] = None)[source]¶
Bases:
tensorbay.exception.ResponseError
This class defines the exception for invalid parameters response error.
- Parameters
response – The response of the request.
param_name – The name of the invalid parameter.
param_value – The value of the invalid parameter.
- response¶
The response of the request.
- exception tensorbay.exception.NameConflictError(response: Optional[requests.models.Response] = None, *, resource: Optional[str] = None, identification: Optional[Union[int, str]] = None)[source]¶
Bases:
tensorbay.exception.ResponseError
This class defines the exception for name conflict response error.
- Parameters
response – The response of the request.
resource – The type of the conflict resource.
identification – The identification of the conflict resource.
- response¶
The response of the request.
- exception tensorbay.exception.RequestParamsMissingError(response: requests.models.Response)[source]¶
Bases:
tensorbay.exception.ResponseError
This class defines the exception for request parameters missing response error.
- exception tensorbay.exception.ResourceNotExistError(response: Optional[requests.models.Response] = None, *, resource: Optional[str] = None, identification: Optional[Union[int, str]] = None)[source]¶
Bases:
tensorbay.exception.ResponseError
This class defines the exception for resource not existing response error.
- Parameters
response – The response of the request.
resource – The type of the conflict resource.
identification – The identification of the conflict resource.
response – The response of the request.
- exception tensorbay.exception.ResponseSystemError(response: requests.models.Response)[source]¶
Bases:
tensorbay.exception.ResponseError
This class defines the exception for system response error.
- exception tensorbay.exception.UnauthorizedError(response: requests.models.Response)[source]¶
Bases:
tensorbay.exception.ResponseError
This class defines the exception for unauthorized response error.
- exception tensorbay.exception.OpenDatasetError[source]¶
Bases:
tensorbay.exception.TensorBayException
This is the base class for custom exceptions in TensorBay opendataset module.
- exception tensorbay.exception.NoFileError(pattern: str)[source]¶
Bases:
tensorbay.exception.OpenDatasetError
This class defines the exception for no matching file found in the opendataset directory.
- Parameters
pattern – Glob pattern.
- exception tensorbay.exception.FileStructureError(message: str)[source]¶
Bases:
tensorbay.exception.OpenDatasetError
This class defines the exception for incorrect file structure in the opendataset directory.
- Parameters
message – The error message.
- exception tensorbay.exception.ModuleImportError(module_name: str, package_name: Optional[str] = None)[source]¶
Bases:
tensorbay.exception.OpenDatasetError
,ModuleNotFoundError
This class defines the exception for import error of optional module in opendataset module.
- Parameters
module_name – The name of the optional module.
package_name – The package name of the optional module.
- exception tensorbay.exception.TBRNError(message: str)[source]¶
Bases:
tensorbay.exception.TensorBayException
This class defines the exception for invalid TBRN.
- Parameters
message – The error message.
- exception tensorbay.exception.UtilityError[source]¶
Bases:
tensorbay.exception.TensorBayException
This is the base class for custom exceptions in TensorBay utility module.
- exception tensorbay.exception.AttrError[source]¶
Bases:
tensorbay.exception.UtilityError
This class defines the exception for dynamic attr have default value.