Sha256: 1f7c7f434d21d13828fddbbd5599e9c1179c11ca96b4e8aa93b72fa7a9ec7ecb

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true

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

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

  # @api public
  # @since 0.3.0
  NameError = Class.new(::NameError)

  # @api public
  # @since 0.2.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

2 entries across 2 versions & 1 rubygems

Version Path
smart_engine-0.4.0 lib/smart_core/errors.rb
smart_engine-0.3.0 lib/smart_core/errors.rb