Exception: JenkinsApi::Exceptions::NotFound

Inherits:
ApiException
  • Object
show all
Defined in:
lib/jenkins_api_client/exceptions.rb

Overview

This exception class handles cases where a requested page is not found on the Jenkins API.

Direct Known Subclasses

CrumbNotFound, JobNotFound, NodeNotFound, PluginNotFound, ViewNotFound

Instance Method Summary (collapse)

Constructor Details

- (NotFound) initialize(logger, message = "", log_level = Logger::ERROR)

Returns a new instance of NotFound



147
148
149
150
151
# File 'lib/jenkins_api_client/exceptions.rb', line 147

def initialize(logger, message = "", log_level = Logger::ERROR)
  msg = message.empty? ? "Requested component is not found on the" +
        " Jenkins CI server." : message
  super(logger, msg)
end