Class: Jenkins2::NotFoundError

Inherits:
Net::HTTPError
  • Object
show all
Defined in:
lib/jenkins2/errors.rb

Instance Method Summary collapse

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