Exception: JenkinsApi::Exceptions::ApiException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/improved_jenkins_client/exceptions.rb

Overview

This is the base class for Exceptions that is inherited from RuntimeError.

Instance Method Summary collapse

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