Sha256: 1946f08db0183a81ea34beb00cfb7bc37305780ff971548a281bda389f6fb805
Contents?: true
Size: 422 Bytes
Versions: 17
Compression:
Stored size: 422 Bytes
Contents
# This class provides a wrapper for caren's server side errors. class Caren::Error attr_accessor :category, :message, :attributes def initialize category, message="", attributes={} self.category = category self.message = message self.attributes = attributes end end class Caren::ValidationError < Caren::Error def field attributes[:on] end def to_s "`#{field}` #{message}" end end
Version data entries
17 entries across 17 versions & 1 rubygems