Class: Frenetic::MissingSchemaDefinition

Inherits:
HypermediaError
  • Object
show all
Defined in:
lib/frenetic/errors.rb

Overview

Raised when there is no schema defined by the Api root for the given resource

Instance Method Summary collapse

Constructor Details

#initialize(namespace) ⇒ MissingSchemaDefinition

Returns a new instance of MissingSchemaDefinition.



71
72
73
74
# File 'lib/frenetic/errors.rb', line 71

def initialize(namespace)
  @namespace = namespace
  super(message)
end

Instance Method Details

#messageObject



76
77
78
# File 'lib/frenetic/errors.rb', line 76

def message
  %(Could not find schema definition for the resource "#{@namespace}")
end