Exception: JenkinsApi::Exceptions::ForbiddenWithCrumb
- Inherits:
-
Forbidden
- Object
- RuntimeError
- ApiException
- Forbidden
- JenkinsApi::Exceptions::ForbiddenWithCrumb
- Defined in:
- lib/improved_jenkins_client/exceptions.rb
Overview
Note:
the ‘refresh_crumbs’ method will update crumb enablement and the stored crumb if called with ‘true’
This exception should be thrown specifically when the caller has had a ForbiddenException and has been able to determine that a (valid) crumb was used, and the attempt still failed. This may require an interim attempt to re-acquire the crumb in order to confirm it has not expired.
Instance Method Summary collapse
-
#initialize(logger, message = '', log_level = Logger::ERROR) ⇒ ForbiddenWithCrumb
constructor
A new instance of ForbiddenWithCrumb.
Constructor Details
#initialize(logger, message = '', log_level = Logger::ERROR) ⇒ ForbiddenWithCrumb
Returns a new instance of ForbiddenWithCrumb.
137 138 139 140 |
# File 'lib/improved_jenkins_client/exceptions.rb', line 137 def initialize(logger, = '', log_level = Logger::ERROR) msg = "A crumb was used in attempt to access operation. #{}" super(logger, msg) end |