Exception: Lhj::JenkinsApi::Exceptions::ApiException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/lhj/jenkins/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.



12
13
14
15
# File 'lib/lhj/jenkins/exceptions.rb', line 12

def initialize(logger, message = "", log_level = Logger::ERROR)
  logger.add(log_level) { "#{self.class}: #{message}" }
  super(message)
end