Exception: Utopia::Redirection::RequestFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/utopia/redirection.rb

Overview

An error handler fails to redirect to a valid page.

Instance Method Summary collapse

Constructor Details

#initialize(resource_path, resource_status, error_path, error_status) ⇒ RequestFailure

Returns a new instance of RequestFailure.



13
14
15
16
17
18
19
20
21
# File 'lib/utopia/redirection.rb', line 13

def initialize(resource_path, resource_status, error_path, error_status)
	@resource_path = resource_path
	@resource_status = resource_status

	@error_path = error_path
	@error_status = error_status
	
	super "Requested resource #{@resource_path} resulted in a #{@resource_status} error. Requested error handler #{@error_path} resulted in a #{@error_status} error."
end