Sha256: 655f123b62350a035e804ea38d762039b143cba3b68aefafce95d97b83d9b722

Contents?: true

Size: 618 Bytes

Versions: 8

Compression:

Stored size: 618 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.5.0
  TypeError = Class.new(::TypeError)

  # @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

8 entries across 8 versions & 1 rubygems

Version Path
smart_engine-0.12.0 lib/smart_core/errors.rb
smart_engine-0.11.0 lib/smart_core/errors.rb
smart_engine-0.10.0 lib/smart_core/errors.rb
smart_engine-0.9.0 lib/smart_core/errors.rb
smart_engine-0.8.0 lib/smart_core/errors.rb
smart_engine-0.7.0 lib/smart_core/errors.rb
smart_engine-0.6.0 lib/smart_core/errors.rb
smart_engine-0.5.0 lib/smart_core/errors.rb