Sha256: fa9e9eaf221aff657e87cc8769253e0507613928edf580c851999f68d018e140
Contents?: true
Size: 627 Bytes
Versions: 4
Compression:
Stored size: 627 Bytes
Contents
# -*- encoding : utf-8 -*- class Card class Error < StandardError #code problem end class Oops < Error # wagneer problem 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 < Exception attr_reader :status def initialize status=:failure, msg='' @status = status super msg end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
wagn-1.13.0.pre1 | lib/card/exceptions.rb |
wagn-1.13.0.pre | lib/card/exceptions.rb |
wagn-1.12.13 | lib/card/exceptions.rb |
wagn-1.12.12 | lib/card/exceptions.rb |