Sha256: 64636b3fd1eb087b3dbab3ac4f733a8a26fa61bf2182fefc3d68601fae20fb44

Contents?: true

Size: 546 Bytes

Versions: 3

Compression:

Stored size: 546 Bytes

Contents

module Dentaku
  class UnboundVariableError < StandardError
    attr_accessor :recipient_variable

    attr_reader :unbound_variables

    def initialize(unbound_variables)
      @unbound_variables = unbound_variables
      super("no value provided for variables: #{ unbound_variables.join(', ') }")
    end
  end

  class ParseError < StandardError
  end

  class TokenizerError < StandardError
  end

  class ArgumentError < ::ArgumentError
  end

  class ZeroDivisionError < ::ZeroDivisionError
    attr_accessor :recipient_variable
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dentaku-2.0.11 lib/dentaku/exceptions.rb
dentaku-2.0.10 lib/dentaku/exceptions.rb
dentaku-2.0.9 lib/dentaku/exceptions.rb