Exceptions

Just another Python API for Travis CI (API).

A module which provides all our exceptions.

Author:
Nissar Chababy, @funilrys, contactTATAfunilrysTODTODcom
Project link:
https://github.com/funilrys/PyTravisCI
Project documentation:
https://pytravisci.readthedocs.io/en/latest/

License

MIT License

Copyright (c) 2019, 2020 Nissar Chababy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
exception PyTravisCI.exceptions.BuildAlreadyStarted[source]

Informs that the current build was already started.

exception PyTravisCI.exceptions.BuildAlreadyStopped[source]

Informs that the current build was already stopped.

exception PyTravisCI.exceptions.FirstPageNotFound[source]

Informs that the first page could not be found.

exception PyTravisCI.exceptions.JobAlreadyStarted[source]

Informs that the current job was already started.

exception PyTravisCI.exceptions.JobAlreadyStopped[source]

Informs that the current job was already stopped.

exception PyTravisCI.exceptions.LastPageNotFound[source]

Informs that the last page could not be found.

exception PyTravisCI.exceptions.NextPageNotFound[source]

Informs that the next page could not be found.

exception PyTravisCI.exceptions.NotIncomplete[source]

Informs that the current object is not incomplete.

exception PyTravisCI.exceptions.PageNotFound[source]

Raises an exception which informs the end-user that we could not find a page.

exception PyTravisCI.exceptions.PreviousPageNotFound[source]

Informs that the previous page could not be found.

exception PyTravisCI.exceptions.PyTravisCIException[source]

The base of all our exceptions.

exception PyTravisCI.exceptions.TravisCIError(url: str, error_message: str, error_type: str, response: Union[dict, str] = None)[source]

Raises an exception with the error we got from the API.

get_error_message()[source]

Provides the error message from upstream.

get_error_type()[source]

Provides the error type from upstream.

get_response()[source]

Provides the complete response from Travis CI.

get_url()[source]

Provides the url from upstream.

message() → str[source]

Provides the message to raise.