Sha256: bb28b2033fef68498c5a6d5d97c5a59a85f7dc506c4d5d2a1e1a3dd12dffe042

Contents?: true

Size: 596 Bytes

Versions: 3

Compression:

Stored size: 596 Bytes

Contents

# frozen_string_literal: false
#
#   shell/error.rb -
#       $Release Version: 0.7 $
#       $Revision$
#       by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
#
#

require "e2mmap"

class Shell
  module Error
    extend Exception2MessageMapper
    def_e2message TypeError, "wrong argument type %s (expected %s)"

    def_exception :DirStackEmpty, "Directory stack empty."
    def_exception :CantDefine, "Can't define method(%s, %s)."
    def_exception :CantApplyMethod, "This method(%s) does not apply to this type(%s)."
    def_exception :CommandNotFound, "Command not found(%s)."
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shell-0.8.1 lib/shell/error.rb
shell-0.8.0 lib/shell/error.rb
shell-0.7 lib/shell/error.rb