Sha256: b649b771ada10d7a1439946f2352804e561a247c3723fce05dd0efa5936f8cdc

Contents?: true

Size: 246 Bytes

Versions: 2

Compression:

Stored size: 246 Bytes

Contents

module CF
  class UserError < RuntimeError
    def initialize(msg)
      @message = msg
    end

    def to_s
      @message
    end
  end

  class NotAuthorized < UserError
    def initialize
      @message = "Not authorized."
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cf-0.6.0.rc2 lib/cf/errors.rb
cf-0.6.0.rc1 lib/cf/errors.rb