Exception: Fluffle::Errors::BaseError

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

Direct Known Subclasses

CustomError, ServerError

Instance Method Summary collapse

Instance Method Details

#to_responseObject



4
5
6
7
8
9
10
# File 'lib/fluffle/errors.rb', line 4

def to_response
  {
    'code'    => self.code,
    'message' => self.message,
    'data'    => self.data
  }
end