Sha256: c2a536c67985dd79460e0ed0c92173d0c44f519e83ead93664199cb4e9a6441e

Contents?: true

Size: 658 Bytes

Versions: 29

Compression:

Stored size: 658 Bytes

Contents

# frozen_string_literal: true

class Code
  class Error < StandardError
    class ArityError < Error
    end

    class TypeError < Error
    end

    class TypeError < Error
    end

    class Undefined < Error
    end

    class UndefinedVariable < Error
    end

    class IncompatibleContext < Error
    end

    class KeyNotFound < Error
    end

    class Break < Error
      attr_reader :value

      def initialize(value = nil)
        @value = value || Object::Nothing.new
      end
    end

    class Next < Error
      attr_reader :value

      def initialize(value = nil)
        @value = value || Object::Nothing.new
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
code-ruby-1.1.3 lib/code/error.rb
code-ruby-1.1.1 lib/code/error.rb
code-ruby-1.1.0 lib/code/error.rb
code-ruby-1.0.0 lib/code/error.rb
code-ruby-0.15.16 lib/code/error.rb
code-ruby-0.15.15 lib/code/error.rb
code-ruby-0.15.14 lib/code/error.rb
code-ruby-0.15.13 lib/code/error.rb
code-ruby-0.15.12 lib/code/error.rb
code-ruby-0.15.11 lib/code/error.rb
code-ruby-0.15.10 lib/code/error.rb
code-ruby-0.15.9 lib/code/error.rb
code-ruby-0.15.8 lib/code/error.rb
code-ruby-0.15.7 lib/code/error.rb
code-ruby-0.15.6 lib/code/error.rb
code-ruby-0.15.5 lib/code/error.rb
code-ruby-0.15.4 lib/code/error.rb
code-ruby-0.15.3 lib/code/error.rb
code-ruby-0.15.2 lib/code/error.rb
code-ruby-0.15.0 lib/code/error.rb