Exception: JenkinsApi::Exceptions::ApiException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- JenkinsApi::Exceptions::ApiException
- Defined in:
- lib/improved_jenkins_client/exceptions.rb
Overview
This is the base class for Exceptions that is inherited from RuntimeError.
Direct Known Subclasses
CLIError, Forbidden, InternalServerError, JobAlreadyExists, NodeAlreadyExists, NotFound, NothingSubmitted, ServiceUnavailable, Unauthorized, ViewAlreadyExists
Instance Method Summary collapse
-
#initialize(logger, message = "", log_level = Logger::ERROR) ⇒ ApiException
constructor
A new instance of ApiException.
Constructor Details
#initialize(logger, message = "", log_level = Logger::ERROR) ⇒ ApiException
Returns a new instance of ApiException.
33 34 35 36 |
# File 'lib/improved_jenkins_client/exceptions.rb', line 33 def initialize(logger, = "", log_level = Logger::ERROR) logger.add(log_level) { "#{self.class}: #{}" } super() end |