cloudos_cli.utils.errors¶
Specific classes to handle errors.
Exceptions
|
Displays a meaningful message when the user tries to import a repository from an account that is not linked with their cloudOS account |
Handle bad request exceptions and shows improved messages. |
|
|
|
|
|
|
|
|
Handle TimeOut exceptions and shows improved messages. |
- exception cloudos_cli.utils.errors.AccountNotLinkedException(wf_url)[source]¶
Bases:
ExceptionDisplays a meaningful message when the user tries to import a repository from an account that is not linked with their cloudOS account
- add_note(note, /)¶
Add a note to the exception
- args¶
- with_traceback(tb, /)¶
Set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.BadRequestException(rv)[source]¶
Bases:
ExceptionHandle bad request exceptions and shows improved messages.
- Parameters:
rv (requests.Response) – The request variable returned that caused the error.
- add_note(note, /)¶
Add a note to the exception
- args¶
- with_traceback(tb, /)¶
Set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.JoBNotCompletedException(job, status)[source]¶
Bases:
Exception- add_note(note, /)¶
Add a note to the exception
- args¶
- with_traceback(tb, /)¶
Set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.JobAccessDeniedException(job_id, job_owner_name=None, current_user_name=None)[source]¶
Bases:
Exception- add_note(note, /)¶
Add a note to the exception
- args¶
- with_traceback(tb, /)¶
Set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.NoCloudForWorkspaceException(workspace_id)[source]¶
Bases:
Exception- add_note(note, /)¶
Add a note to the exception
- args¶
- with_traceback(tb, /)¶
Set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.NotAuthorisedException[source]¶
Bases:
Exception- add_note(note, /)¶
Add a note to the exception
- args¶
- with_traceback(tb, /)¶
Set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.TimeOutException(rv)[source]¶
Bases:
ExceptionHandle TimeOut exceptions and shows improved messages.
- Parameters:
rv (requests.Response) – The request variable returned that caused the error.
- add_note(note, /)¶
Add a note to the exception
- args¶
- with_traceback(tb, /)¶
Set self.__traceback__ to tb and return self.