Exception: SmartParams::NoMatchingNamespaceException
- Inherits:
-
StandardError
- Object
- StandardError
- SmartParams::NoMatchingNamespaceException
- Defined in:
- lib/smart_params/no_matching_namespace_exception.rb
Instance Method Summary collapse
-
#initialize(namespace:, available:) ⇒ NoMatchingNamespaceException
constructor
A new instance of NoMatchingNamespaceException.
- #message ⇒ Object
Constructor Details
#initialize(namespace:, available:) ⇒ NoMatchingNamespaceException
Returns a new instance of NoMatchingNamespaceException.
5 6 7 8 9 |
# File 'lib/smart_params/no_matching_namespace_exception.rb', line 5 def initialize(namespace:, available:) @namespace = namespace @available = available super() end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/smart_params/no_matching_namespace_exception.rb', line 11 def "#{@namespace} does not exist, only #{@available.inspect}" end |