Exception: Mariner::Errors::InvalidUrlHelperMethod

Inherits:
RuntimeError
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/mariner/errors.rb', line 9

def name
  @name
end

Instance Method Details

#messageObject



15
16
17
# File 'lib/mariner/errors.rb', line 15

def message
  "Unknown url helper method used in navigation configuration: #{name.inspect}"
end

#to_sObject



19
20
21
# File 'lib/mariner/errors.rb', line 19

def to_s
  message
end