Exception: Exo::Site::UnknowHostError

Inherits:
Exception
  • Object
show all
Defined in:
app/exceptions/exo/site/unknow_host_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host) ⇒ UnknowHostError

Returns a new instance of UnknowHostError.



4
5
6
7
# File 'app/exceptions/exo/site/unknow_host_error.rb', line 4

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

Instance Attribute Details

#hostObject

Returns the value of attribute host.



2
3
4
# File 'app/exceptions/exo/site/unknow_host_error.rb', line 2

def host
  @host
end

Instance Method Details

#to_partial_pathObject



9
10
11
# File 'app/exceptions/exo/site/unknow_host_error.rb', line 9

def to_partial_path
  'exo/errors/unknow_host'
end