Exception: Exo::Route::UnknowPathError

Inherits:
Exception
  • Object
show all
Defined in:
app/exceptions/exo/route/unknow_path_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, path) ⇒ UnknowPathError

Returns a new instance of UnknowPathError.



4
5
6
7
8
# File 'app/exceptions/exo/route/unknow_path_error.rb', line 4

def initialize host, path
  self.host = host
  self.path = path
  super "Unknow path #{path} for host #{host}"
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



2
3
4
# File 'app/exceptions/exo/route/unknow_path_error.rb', line 2

def host
  @host
end

#pathObject

Returns the value of attribute path.



2
3
4
# File 'app/exceptions/exo/route/unknow_path_error.rb', line 2

def path
  @path
end

Instance Method Details

#to_partial_pathObject



10
11
12
# File 'app/exceptions/exo/route/unknow_path_error.rb', line 10

def to_partial_path
  'exo/errors/unknow_path'
end