Sha256: 916a4469a51eb09021e98c8a25c5a057aa7fcc2d13de5c9504152bf872b87407
Contents?: true
Size: 632 Bytes
Versions: 7
Compression:
Stored size: 632 Bytes
Contents
# -*- encoding : utf-8 -*- class Card class Error < StandardError #code problem end class Oops < Error # wagneer problem (rename!) end class BadQuery < Error end class PermissionDenied < Error attr_reader :card def initialize card @card = card super build_message end def build_message if msg = @card.errors[:permission_denied] "for card #{@card.name}: #{msg}" else super end end end class Abort < StandardError attr_reader :status def initialize status, msg='' @status = status super msg end end end
Version data entries
7 entries across 7 versions & 1 rubygems