Exception: MissingFacet
- Inherits:
-
ApplicationError
- Object
- StandardError
- ApplicationError
- MissingFacet
- Defined in:
- lib/generators/propel_facets/templates/errors/missing_facet.rb
Overview
Error thrown when a facet cannot be found
This is only thrown when you pass { missing: :error } as part of
as_json options.
Instance Method Summary collapse
-
#initialize(msg = 'Facet not found to render JSON') ⇒ MissingFacet
constructor
A new instance of MissingFacet.
Constructor Details
#initialize(msg = 'Facet not found to render JSON') ⇒ MissingFacet
Returns a new instance of MissingFacet.
10 11 12 |
# File 'lib/generators/propel_facets/templates/errors/missing_facet.rb', line 10 def initialize(msg = 'Facet not found to render JSON') super end |