Exception: Mariner::Errors::InvalidUrlHelperMethod
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Mariner::Errors::InvalidUrlHelperMethod
- Defined in:
- lib/mariner/errors.rb
Overview
Private: This error is raised when Url tries to use a route helper method that’s unavailable or undefined
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ InvalidUrlHelperMethod
constructor
A new instance of InvalidUrlHelperMethod.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ InvalidUrlHelperMethod
Returns a new instance of InvalidUrlHelperMethod.
11 12 13 |
# File 'lib/mariner/errors.rb', line 11 def initialize(name) self.name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/mariner/errors.rb', line 9 def name @name end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/mariner/errors.rb', line 15 def "Unknown url helper method used in navigation configuration: #{name.inspect}" end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/mariner/errors.rb', line 19 def to_s end |