Sha256: d2fb9cbc6785829c5d212837034a87dc71e9388ea3a9072529930c5897c631f1

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

module WebConsole
  class BadCustomErrorScenario
    class Error < StandardError
      def initialize(*)
        # Bad exceptions are exceptions that don't call super in there
        # #initialize method.
      end
    end

    def call
      raise Error
    rescue => exc
      exc
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
web-console-2.1.3 test/support/scenarios/bad_custom_error_scenario.rb
web-console-2.1.2 test/support/scenarios/bad_custom_error_scenario.rb
web-console-2.1.1 test/support/scenarios/bad_custom_error_scenario.rb
web-console-2.1.0 test/support/scenarios/bad_custom_error_scenario.rb