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:
Exception
Displays a meaningful message when the user tries to import a repository from an account that is not linked with their cloudOS account
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.BadRequestException(rv)[source]¶
Bases:
Exception
Handle bad request exceptions and shows improved messages.
- Parameters:
rv (requests.Response) – The request variable returned that caused the error.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.JoBNotCompletedException(job, status)[source]¶
Bases:
Exception
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.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(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.NoCloudForWorkspaceException(workspace_id)[source]¶
Bases:
Exception
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.NotAuthorisedException[source]¶
Bases:
Exception
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception cloudos_cli.utils.errors.TimeOutException(rv)[source]¶
Bases:
Exception
Handle TimeOut exceptions and shows improved messages.
- Parameters:
rv (requests.Response) – The request variable returned that caused the error.
- add_note(object, /)¶
Exception.add_note(note) – add a note to the exception
- args¶
- with_traceback(object, /)¶
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.