Sha256: 849705e5ad94dbde85e624bc9529167923520f568434b0d0e4fa3481d37f00c9

Contents?: true

Size: 474 Bytes

Versions: 7

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

module SmartCore
  # @api public
  # @since 0.5.0
  Error = Class.new(StandardError)

  # @api public
  # @since 0.5.0
  ArgumentError = Class.new(::ArgumentError)

  # @api public
  # @since 0.5.0
  FrozenError = begin # rubocop:disable Naming/ConstantName
    # :nocov:
    if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.5.0')
      Class.new(::FrozenError)
    else
      Class.new(::RuntimeError)
    end
    # :nocov:
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smart_core-0.8.1 lib/smart_core/errors.rb
smart_core-0.8.0 lib/smart_core/errors.rb
smart_core-0.7.0 lib/smart_core/errors.rb
smart_core-0.6.0 lib/smart_core/exceptions.rb
smart_core-0.5.2 lib/smart_core/exceptions.rb
smart_core-0.5.1 lib/smart_core/exceptions.rb
smart_core-0.5.0 lib/smart_core/exceptions.rb