Exception: Relaxo::QueryServer::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/relaxo/query_server/designer.rb

Overview

Indicates that a validation error has occured.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details) ⇒ ValidationError

Returns a new instance of ValidationError.



29
30
31
32
33
# File 'lib/relaxo/query_server/designer.rb', line 29

def initialize(details)
	super "Validation failed!"
	
	@details = details
end

Instance Attribute Details

#detailsObject (readonly)

The details of the validation error, typically:

{:forbidden => "Message"}

or

{:unauthorized => "Message"}


39
40
41
# File 'lib/relaxo/query_server/designer.rb', line 39

def details
  @details
end