kiyonori-matsumoto/tcl-ruby

View on GitHub
lib/tcl/ruby/error.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Tcl
  module Ruby
    class TclError < StandardError; end
    class ParseError < TclError; end
    class CommandError < TclError; end
    class TclArgumentError < TclError
      # def initialize(msg)
      #   super("wrong \# args: should be\"#{msg}\"")
      # end
    end
    class TclVariableNotFoundError < TclError
      def initialize(var, type = '')
        super("can't read \"#{var}\": #{type}")
      end
    end
  end
end