Exception: Fluffle::Errors::ServerError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/fluffle/errors.rb

Overview

Superclass of all errors that may be raised within the server

Direct Known Subclasses

InvalidRequestError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseError

#to_response

Instance Attribute Details

#descriptionObject (readonly)

Longer-form description that may be present in the data field of the Error response object



34
35
36
# File 'lib/fluffle/errors.rb', line 34

def description
  @description
end

Instance Method Details

#dataObject



36
37
38
# File 'lib/fluffle/errors.rb', line 36

def data
  { 'description' => @description }
end