Exception: JenkinsApi::Exceptions::Unauthorized

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

Overview

This exception class handles cases where invalid credentials are provided to connect to the Jenkins.

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Unauthorized.



82
83
84
85
# File 'lib/jenkins_api_client/exceptions.rb', line 82

def initialize(logger, message = "", log_level = Logger::ERROR)
  message = "Invalid credentials are provided." if message.empty?
  super(logger, message, Logger::FATAL)
end