Sha256: a5cce6fd9a98b43f6502d052931cd74a8bd1efef3ae9c01b21c8d1b12b72a3c0

Contents?: true

Size: 1.39 KB

Versions: 8

Compression:

Stored size: 1.39 KB

Contents

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

module IRB
  # :stopdoc:

  class UnrecognizedSwitch < StandardError
    def initialize(val)
      super("Unrecognized switch: #{val}")
    end
  end
  class NotImplementedError < StandardError
    def initialize(val)
      super("Need to define `#{val}'")
    end
  end
  class CantReturnToNormalMode < StandardError
    def initialize
      super("Can't return to normal mode.")
    end
  end
  class IllegalParameter < StandardError
    def initialize(val)
      super("Invalid parameter(#{val}).")
    end
  end
  class IrbAlreadyDead < StandardError
    def initialize
      super("Irb is already dead.")
    end
  end
  class IrbSwitchedToCurrentThread < StandardError
    def initialize
      super("Switched to current thread.")
    end
  end
  class NoSuchJob < StandardError
    def initialize(val)
      super("No such job(#{val}).")
    end
  end
  class CantChangeBinding < StandardError
    def initialize(val)
      super("Can't change binding to (#{val}).")
    end
  end
  class UndefinedPromptMode < StandardError
    def initialize(val)
      super("Undefined prompt mode(#{val}).")
    end
  end
  class IllegalRCGenerator < StandardError
    def initialize
      super("Define illegal RC_NAME_GENERATOR.")
    end
  end

  # :startdoc:
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
irb-1.6.2 lib/irb/lc/error.rb
irb-1.6.1 lib/irb/lc/error.rb
irb-1.6.0 lib/irb/lc/error.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/irb-1.4.2/lib/irb/lc/error.rb
irb-1.5.1 lib/irb/lc/error.rb
irb-1.5.0 lib/irb/lc/error.rb
irb-1.4.3 lib/irb/lc/error.rb
irb-1.4.2 lib/irb/lc/error.rb