Exception: JenkinsApi::Exceptions::ApiException

Inherits:
RuntimeError
  • Object
show all
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)

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, message = "", log_level = Logger::ERROR)
  logger.add(log_level) { "#{self.class}: #{message}" }
  super(message)
end