Exception: Lhj::JenkinsApi::Exceptions::NotFound

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

Overview

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of NotFound.



126
127
128
129
130
# File 'lib/lhj/jenkins/exceptions.rb', line 126

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