Sha256: 3496f0165405a273fc21de0a1d55c2cddff03a4ba59223e3ed48291f9e6adc77

Contents?: true

Size: 525 Bytes

Versions: 8

Compression:

Stored size: 525 Bytes

Contents

module Motel

  class ExistingTenantError < StandardError
    def initialize(msg = "Existing tenant")
      super(msg)
    end
  end

  class NonexistentTenantError < StandardError
    def initialize(msg = "Nonexistent tenant")
      super(msg)
    end
  end

  class NoCurrentTenantError < StandardError
    def initialize(msg = "No current tenant")
      super(msg)
    end
  end

  class AnonymousTenantError < StandardError
    def initialize(msg = "Anonymous tenant is not allowed")
      super(msg)
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
motel-activerecord-3.0.0 lib/motel/errors.rb
motel-activerecord-2.1.0 lib/motel/errors.rb
motel-activerecord-2.0.3 lib/motel/errors.rb
motel-activerecord-2.0.2 lib/motel/errors.rb
motel-activerecord-2.0.1 lib/motel/errors.rb
motel-activerecord-2.0.0 lib/motel/errors.rb
motel-activerecord-1.0.1 lib/motel/errors.rb
motel-activerecord-1.0.0 lib/motel/errors.rb