Exception: JenkinsApi::Exceptions::Unauthorized
- Inherits:
-
ApiException
- Object
- RuntimeError
- ApiException
- JenkinsApi::Exceptions::Unauthorized
- Defined in:
- lib/improved_jenkins_client/exceptions.rb
Overview
This exception class handles cases where invalid credentials are provided to connect to the Jenkins.
Instance Method Summary collapse
-
#initialize(logger, message = "", log_level = Logger::ERROR) ⇒ Unauthorized
constructor
A new instance of Unauthorized.
Constructor Details
#initialize(logger, message = "", log_level = Logger::ERROR) ⇒ Unauthorized
Returns a new instance of Unauthorized.
82 83 84 85 |
# File 'lib/improved_jenkins_client/exceptions.rb', line 82 def initialize(logger, = "", log_level = Logger::ERROR) = "Invalid credentials are provided." if .empty? super(logger, , Logger::FATAL) end |