pyjen.exceptions module

All PyJen specific exception declarations

exception pyjen.exceptions.InvalidJenkinsURLError(msg, url)[source]

Bases: pyjen.exceptions.PyJenError

Exception raised when attempting to connect to a URL that doesn’t point to a valid Jenkins REST API

constructor

Parameters:
  • msg (str) – Descriptive message associated with this exception
  • url (str) – URL in question that does not point to a valid Jenkins REST API
exception pyjen.exceptions.InvalidParameterError(msg)[source]

Bases: pyjen.exceptions.PyJenError

Exception raised when the caller provides an invalid value as an input parameter to a PyJen method call

Constructor

Parameters:msg (str) – Descriptive message associated with this exception
exception pyjen.exceptions.InvalidUserParamsError(msg)[source]

Bases: pyjen.exceptions.PyJenError

Exception caused by invalid parameters in the user configuration file

constructor

Parameters:msg (str) – Descriptive message associated with this exception
exception pyjen.exceptions.JenkinsFlushFailure(failed_items)[source]

Bases: pyjen.exceptions.PyJenError

Exception raised when flushing cached Jenkins data to the remote server fails

failed_items[source]
exception pyjen.exceptions.NestedViewCreationError(msg)[source]

Bases: pyjen.exceptions.PyJenError

Error when creating a sub-view in the nested-view plugin

Constructor

Parameters:msg (str) – Descriptive message associated with this exception
exception pyjen.exceptions.NotYetImplementedError[source]

Bases: pyjen.exceptions.PyJenError

Exception thrown from methods that are not yet implemented

constructor

exception pyjen.exceptions.PluginNotSupportedError(message, plugin_name)[source]

Bases: exceptions.NotImplementedError

Basic extension to the NotImplementedError with details about which plugin was not found

Constructor

Parameters:
  • message (str) – description of the error
  • plugin_name (str) – the class name / type of the plugin that was not found
message[source]
plugin_name[source]
exception pyjen.exceptions.PyJenError[source]

Bases: exceptions.Exception

Base class for all PyJen related exceptions