File: error.rb

package info (click to toggle)
ruby-zeitwerk 2.7.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 740 kB
  • sloc: ruby: 6,242; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 476 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Zeitwerk
  class Error < StandardError
  end

  class ReloadingDisabledError < Error
    #: () -> void
    def initialize
      super("can't reload, please call loader.enable_reloading before setup")
    end
  end

  class NameError < ::NameError
  end

  class SetupRequired < Error
    #: () -> void
    def initialize
      super("please, finish your configuration and call Zeitwerk::Loader#setup once all is ready")
    end
  end
end