Exception: JenkinsApi::Exceptions::JobNotFound
- Inherits:
-
NotFound
- Object
- RuntimeError
- ApiException
- NotFound
- JenkinsApi::Exceptions::JobNotFound
- Defined in:
- lib/improved_jenkins_client/exceptions.rb
Overview
This exception class handles cases where the requested job does not exist in Jenkins.
Instance Method Summary collapse
-
#initialize(logger, message = "", log_level = Logger::ERROR) ⇒ JobNotFound
constructor
A new instance of JobNotFound.
Constructor Details
#initialize(logger, message = "", log_level = Logger::ERROR) ⇒ JobNotFound
Returns a new instance of JobNotFound.
172 173 174 175 |
# File 'lib/improved_jenkins_client/exceptions.rb', line 172 def initialize(logger, = "", log_level = Logger::ERROR) msg = .empty? ? "The specified job is not found" : super(logger, msg) end |