Exception: Exo::Route::UnknowPathError
- Inherits:
-
Exception
- Object
- Exception
- Exo::Route::UnknowPathError
- Defined in:
- app/exceptions/exo/route/unknow_path_error.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(host, path) ⇒ UnknowPathError
constructor
A new instance of UnknowPathError.
- #to_partial_path ⇒ Object
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
#host ⇒ Object
Returns the value of attribute host.
2 3 4 |
# File 'app/exceptions/exo/route/unknow_path_error.rb', line 2 def host @host end |
#path ⇒ Object
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_path ⇒ Object
10 11 12 |
# File 'app/exceptions/exo/route/unknow_path_error.rb', line 10 def to_partial_path 'exo/errors/unknow_path' end |