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