Sha256: ad6e30be324e43d0495f2c8fded0ca900e06ddd0d59cfaf121a5b167622f92d6
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
module Restly::Error class StandardError < ::StandardError def message defined?(IRB) ? super.red : super end end errors = %w{ RecordNotFound WrongResourceType InvalidParentAssociation InvalidJoinerAssociation InvalidObject InvalidToken InvalidConnection MissingId InvalidSpec AssociationError } errors.each do |error| const_set(error.to_sym, Class.new(StandardError)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restly-0.0.1.alpha.6 | lib/restly/error.rb |