Exception: Lhj::JenkinsApi::Exceptions::JobNotFound

Inherits:
NotFound show all
Defined in:
lib/lhj/jenkins/exceptions.rb

Overview

This exception class handles cases where the requested job does not exist in Jenkins.

Instance Method Summary collapse

Constructor Details

#initialize(logger, message = "", log_level = Logger::ERROR) ⇒ JobNotFound

Returns a new instance of JobNotFound.



151
152
153
154
# File 'lib/lhj/jenkins/exceptions.rb', line 151

def initialize(logger, message = "", log_level = Logger::ERROR)
  msg = message.empty? ? "The specified job is not found" : message
  super(logger, msg)
end