Exception: Grumlin::StatusError

Inherits:
Error
  • Object
show all
Defined in:
lib/grumlin.rb

Direct Known Subclasses

ClientSideError, ServerSideError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, query) ⇒ StatusError

Returns a new instance of StatusError.



69
70
71
72
73
# File 'lib/grumlin.rb', line 69

def initialize(status, query)
  super(status[:message])
  @status = status
  @query = query
end

Instance Attribute Details

#queryObject (readonly)

Returns the value of attribute query.



67
68
69
# File 'lib/grumlin.rb', line 67

def query
  @query
end

#statusObject (readonly)

Returns the value of attribute status.



67
68
69
# File 'lib/grumlin.rb', line 67

def status
  @status
end