Exception: Crowdkit::UserError

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

Overview

Custom error class for errors made with the client itself

Direct Known Subclasses

RequiredParams, StatusError, ValidationError

Instance Method Summary collapse

Instance Method Details

#generate_message(attributes) ⇒ Object



6
7
8
9
10
# File 'lib/crowdkit/error.rb', line 6

def generate_message(attributes)
  "\nProblem:\n #{attributes[:problem]}"+
  "\nSummary:\n #{attributes[:summary]}"+
  "\nResolution:\n #{attributes[:resolution]}"
end