1#
2#   shell/error.rb -
3#       $Release Version: 0.7 $
4#       $Revision: 31641 $
5#       by Keiju ISHITSUKA(keiju@ruby-lang.org)
6#
7# --
8#
9#
10#
11
12require "e2mmap"
13
14class Shell
15  module Error
16    extend Exception2MessageMapper
17    def_e2message TypeError, "wrong argument type %s (expected %s)"
18
19    def_exception :DirStackEmpty, "Directory stack empty."
20    def_exception :CantDefine, "Can't define method(%s, %s)."
21    def_exception :CantApplyMethod, "This method(%s) does not apply to this type(%s)."
22    def_exception :CommandNotFound, "Command not found(%s)."
23  end
24end
25
26