Exception: Poncho::ServerError

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

Instance Method Summary collapse

Methods inherited from Error

#as_json, #to_json

Instance Method Details

#codeObject



17
18
19
# File 'lib/poncho/error.rb', line 17

def code
  500
end

#messageObject



25
26
27
28
# File 'lib/poncho/error.rb', line 25

def message
  "Sorry, something went wrong. " +
  "We've been notified about the problem."
end

#typeObject



21
22
23
# File 'lib/poncho/error.rb', line 21

def type
  :server_error
end