Exception: JenkinsApi::Exceptions::JobNotFound

Inherits:
NotFound show all
Defined in:
lib/jenkins_api_client/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.



172
173
174
175
# File 'lib/jenkins_api_client/exceptions.rb', line 172

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