Class: Jenkins2::NotFoundError
- Inherits:
-
Net::HTTPError
- Object
- Net::HTTPError
- Jenkins2::NotFoundError
- Defined in:
- lib/jenkins2/errors.rb
Instance Method Summary collapse
-
#initialize(res) ⇒ NotFoundError
constructor
A new instance of NotFoundError.
Constructor Details
#initialize(res) ⇒ NotFoundError
Returns a new instance of NotFoundError.
17 18 19 |
# File 'lib/jenkins2/errors.rb', line 17 def initialize(res) super(res.body.match('<h2>HTTP ERROR 404</h2>\n<p>(.*) Reason:')[1], res) end |