Sha256: aa7e8f21264bb71d5653f0ee11da8b59c4efc419cbf6db5b61a39a45dad0f46a

Contents?: true

Size: 442 Bytes

Versions: 7

Compression:

Stored size: 442 Bytes

Contents

module Composable
  module Tenant
    class NoTenantSet < StandardError
      attr_reader :tenant

      def initialize(tenant:)
        @tenant = tenant
        super "#{tenant} tenant is not set"
      end
    end

    class TenantIsImmutable < StandardError
      attr_reader :method_name

      def initialize(method_name:)
        @method_name = method_name
        super "#{method_name} method is immutable"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
composable-tenant-0.0.12 lib/composable/tenant/errors.rb
composable-tenant-0.0.11 lib/composable/tenant/errors.rb
composable-tenant-0.0.10 lib/composable/tenant/errors.rb
composable-tenant-0.0.9 lib/composable/tenant/errors.rb
composable-tenant-0.0.8 lib/composable/tenant/errors.rb
composable-tenant-0.0.7 lib/composable/tenant/errors.rb
composable-tenant-0.0.6 lib/composable/tenant/errors.rb