Exception: JenkinsApi::Exceptions::ApiException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- JenkinsApi::Exceptions::ApiException
- Defined in:
- lib/jenkins_api_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)
-
- (ApiException) initialize(logger, message = "", log_level = Logger::ERROR)
constructor
A new instance of ApiException.
Constructor Details
- (ApiException) initialize(logger, message = "", log_level = Logger::ERROR)
Returns a new instance of ApiException
33 34 35 36 |
# File 'lib/jenkins_api_client/exceptions.rb', line 33 def initialize(logger, = "", log_level = Logger::ERROR) logger.add(log_level) { "#{self.class}: #{}" } super() end |