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



42
43
44
# File 'lib/fluffle/errors.rb', line 42

def description
  @description
end

Instance Method Details

#dataObject



44
45
46
# File 'lib/fluffle/errors.rb', line 44

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