Sha256: 763a1cc0bfc604201b8711249fb597163bc48a467e7f87e1d61486d5a8652118
Contents?: true
Size: 663 Bytes
Versions: 8
Compression:
Stored size: 663 Bytes
Contents
# -*- encoding : utf-8 -*- class Card class Error < StandardError #code problem cattr_accessor :current 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
8 entries across 8 versions & 1 rubygems