lib/shell/error.rb


DEFINITIONS

This source file includes following functions.


   1  #
   2  #   shell/error.rb - 
   3  #       $Release Version: 0.6.0 $
   4  #       $Revision: 1.1 $
   5  #       $Date: 2001/05/17 10:02:47 $
   6  #       by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd)
   7  #
   8  # --
   9  #
  10  #   
  11  #
  12  
  13  require "e2mmap"
  14  
  15  class 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 :CanNotDefine, "Can't define method(%s, %s)."
  22      def_exception :CanNotMethodApply, "This method(%s) can't apply this type(%s)."
  23      def_exception :CommandNotFound, "Command not found(%s)."
  24    end
  25  end
  26