class Exceptions::Simple
Attributes
status[RW]
Public Instance Methods
error()
click to toggle source
for standard errors this method build a hash @return [String] json string
# File lib/exceptions/simple.rb, line 9 def error { error: { message: self.object[:message], full_message: "#{self.object[:field]} #{self.object[:message]} ", field: self.object[:field] } } end
message()
click to toggle source
return the error message @return [String]
# File lib/exceptions/simple.rb, line 21 def message self.object[:message] end