Exception: JenkinsApi::Exceptions::Unauthorized
- Inherits:
-
ApiException
- Object
- RuntimeError
- ApiException
- JenkinsApi::Exceptions::Unauthorized
- 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)
-
- (Unauthorized) initialize(logger, message = "", log_level = Logger::ERROR)
constructor
A new instance of Unauthorized.
Constructor Details
- (Unauthorized) initialize(logger, message = "", log_level = Logger::ERROR)
Returns a new instance of Unauthorized
82 83 84 85 |
# File 'lib/jenkins_api_client/exceptions.rb', line 82 def initialize(logger, = "", log_level = Logger::ERROR) = "Invalid credentials are provided." if .empty? super(logger, , Logger::FATAL) end |