Exception: JPie::Errors::UnsupportedIncludeError
- Inherits:
-
BadRequestError
- Object
- StandardError
- Error
- BadRequestError
- JPie::Errors::UnsupportedIncludeError
- Defined in:
- lib/jpie/errors.rb
Instance Attribute Summary
Attributes inherited from Error
#code, #detail, #source, #status, #title
Instance Method Summary collapse
-
#initialize(include_path:, supported_includes: []) ⇒ UnsupportedIncludeError
constructor
A new instance of UnsupportedIncludeError.
Methods inherited from Error
Constructor Details
#initialize(include_path:, supported_includes: []) ⇒ UnsupportedIncludeError
Returns a new instance of UnsupportedIncludeError.
84 85 86 87 88 89 90 91 |
# File 'lib/jpie/errors.rb', line 84 def initialize(include_path:, supported_includes: []) detail = if supported_includes.any? "Unsupported include '#{include_path}'. Supported includes: #{supported_includes.join(', ')}" else "Unsupported include '#{include_path}'. No includes are supported for this resource" end super(detail: detail) end |