Exception: Xhive::Router::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/xhive/router/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(action) ⇒ Error

Returns a new instance of Error.



4
5
6
7
# File 'lib/xhive/router/error.rb', line 4

def initialize(action)
  @action = action
  super
end

Instance Method Details

#messageObject



9
10
11
# File 'lib/xhive/router/error.rb', line 9

def message
  "No route was found for action #{@action}"
end