Exception: MHV::UserAccount::Errors::UserAccountError

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/mhv/user_account/errors.rb

Direct Known Subclasses

CreatorError, MHVClientError, ValidationError

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



7
8
9
# File 'app/services/mhv/user_account/errors.rb', line 7

def as_json
  message.split(',').map { |m| { title: class_name, detail: m.strip } }
end

#class_nameObject (private)



13
14
15
# File 'app/services/mhv/user_account/errors.rb', line 13

def class_name
  self.class.name.demodulize.underscore.humanize
end