Exception: MediaTypes::Serialization::NoSelfLinkProvidedError
- Inherits:
-
ConfigurationError
- Object
- StandardError
- Error
- ConfigurationError
- MediaTypes::Serialization::NoSelfLinkProvidedError
- Defined in:
- lib/media_types/serialization/error.rb
Instance Method Summary collapse
-
#initialize(media_type_identifier) ⇒ NoSelfLinkProvidedError
constructor
A new instance of NoSelfLinkProvidedError.
Constructor Details
#initialize(media_type_identifier) ⇒ NoSelfLinkProvidedError
Returns a new instance of NoSelfLinkProvidedError.
141 142 143 |
# File 'lib/media_types/serialization/error.rb', line 141 def initialize(media_type_identifier) super("Tried to render an index of '#{media_type_identifier}' elements but the serializer did not return a :self link for me to use. Please call 'link rel: :self, href: 'https://...' in the #{media_type_identifier} serializer.") end |