source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/shell/error.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 641 bytes
Line 
1#
2# shell/error.rb -
3# $Release Version: 0.6.0 $
4# $Revision: 11708 $
5# $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
6# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd)
7#
8# --
9#
10#
11#
12
13require "e2mmap"
14
15class Shell
16 module Error
17 extend Exception2MessageMapper
18 def_e2message TypeError, "wrong argument type %s (expected %s)"
19
20 def_exception :DirStackEmpty, "Directory stack empty."
21 def_exception :CantDefine, "Can't define method(%s, %s)."
22 def_exception :CantApplyMethod, "This method(%s) does not apply to this type(%s)."
23 def_exception :CommandNotFound, "Command not found(%s)."
24 end
25end
26
Note: See TracBrowser for help on using the repository browser.