Sha256: 7e6da048643d7e3668a35464275ad61dd37235cc7b5df0a2da9a72cbbe7e026b

Contents?: true

Size: 873 Bytes

Versions: 7

Compression:

Stored size: 873 Bytes

Contents

require 'sfrp/error'

module SFRP
  module Flat
    class NodeRefInIllegalPositionError < CompileError
      def initialize(node_str)
        @node_str = node_str
      end

      def message
        "don't refer node '#{@node_str}'"
      end
    end

    class DuplicatedVariableError < CompileError
      def initialize(var_str)
        @var_str = var_str
      end

      def message
        "duplicated variable '#{@var_str}'"
      end
    end

    class UnboundLocalVariableError < CompileError
      def initialize(var_str)
        @var_str = var_str
      end

      def message
        "unbound variable '#{@var_str}'"
      end
    end

    class NodeInvalidLastReferrenceError < CompileError
      def initialize(node_str)
        @node_str = node_str
      end

      def message
        "node '#{@node_str}' should be initialized"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sfrp-1.5.2 lib/sfrp/flat/exception.rb
sfrp-1.5.1 lib/sfrp/flat/exception.rb
sfrp-1.5.0 lib/sfrp/flat/exception.rb
sfrp-1.4.0 lib/sfrp/flat/exception.rb
sfrp-1.2.1 lib/sfrp/flat/exception.rb
sfrp-1.2.0 lib/sfrp/flat/exception.rb
sfrp-1.1.0 lib/sfrp/flat/exception.rb