Exceptions¶
TensorBay SDK defines a series of custom exceptions.
- TensorBayException¶
TensorBayExceptionis the base class for TensorBay SDK custom exceptions.- TBRNError¶
TBRNErrordefines the exception for invalid TBRN. Raised when the TBRN format is incorrect.- ClientError¶
ClientErroris the base class for custom exceptions in the client module.- StatusError¶
StatusErrordefines the exception for illegal status in the client module. Raised when the status is draft or commit, while the required status is commit or draft.- DatasetTypeError¶
DatasetTypeErrordefines the exception for incorrect type of the requested dataset in the client module. Raised when the type of the required dataset is inconsistent with the input “is_fusion” parameter while getting dataset from TensorBay.- FrameError¶
FrameErrordefines the exception for incorrect frame id in the client module. Raised when the frame id and timestamp of a frame conflicts or missing.- ResponseError¶
ResponseErrordefines the exception for post response error in the client module. Raised when the response from TensorBay has error. And different subclass exceptions will be raised according to different error code.- AccessDeniedError¶
AccessDeniedErrordefines the exception for access denied response error in the client module. Raised when the current account has no permission to access the resource.- InvalidParamsError¶
InvalidParamsErrordefines the exception for invalid parameters response error in the client module. Raised when the parameters of the request are invalid.- NameConflictError¶
NameConflictErrordefines the exception for name conflict response error in the client module. Raised when the name of the resource to be created already exists on Tensorbay.- RequestParamsMissingError¶
RequestParamsMissingErrordefines the exception for request parameters missing response error in the client module. Raised when necessary parameters of the request are missing.- ResourceNotExistError¶
ResourceNotExistErrordefines the exception for resource not existing response error in the client module. Raised when the request resource does not exist on Tensorbay.- ResponseSystemError¶
ResponseSystemErrordefines the exception for system response error in the client module. Raised when system error was responded.UnauthorizedErrordefines the exception for unauthorized response error in the client module. Raised when the accesskey is incorrect.- OpenDatasetError¶
OpenDatasetErroris the base class for custom exceptions in the opendataset module.- NoFileError¶
NoFileErrordefines the exception for no matching file found in the opendataset directory.- FileStructureError¶
FileStructureErrordefines the exception for incorrect file structure in the opendataset directory.
Exception hierarchy¶
The class hierarchy for TensorBay custom exceptions is:
+-- TensorBayException
+-- ClientError
+-- StatusError
+-- DatasetTypeError
+-- FrameError
+-- ResponseError
+-- AccessDeniedError
+-- InvalidParamsError
+-- NameConflictError
+-- RequestParamsMissingError
+-- ResourceNotExistError
+-- ResponseSystemError
+-- UnauthorizedError
+-- TBRNError
+-- OpenDatasetError
+-- NoFileError
+-- FileStructureError