Sha256: f1548e0b7a845572edccdfec85a76b6603f84c51f1bf5db1d872e5deb2ad4693

Contents?: true

Size: 564 Bytes

Versions: 25

Compression:

Stored size: 564 Bytes

Contents

Foobara.require_project_file("common", "error")

module Foobara
  # NOTE: annoyingly this will clash with ::RuntimeError if not fully qualified when using
  class RuntimeError < Error
    abstract

    class << self
      def category
        :runtime
      end

      def fatal?
        true
      end
    end

    # TODO: why path instead of runtime path?
    def initialize(message: nil, symbol: nil, context: nil, path: nil)
      args = { message:, symbol:, context:, path: }.compact
      super(**args.merge(category: self.class.category))
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
foobara-0.0.25 projects/common/src/runtime_error.rb
foobara-0.0.24 projects/common/src/runtime_error.rb
foobara-0.0.23 projects/common/src/runtime_error.rb
foobara-0.0.22 projects/common/src/runtime_error.rb
foobara-0.0.21 projects/common/src/runtime_error.rb
foobara-0.0.20 projects/common/src/runtime_error.rb
foobara-0.0.19 projects/common/src/runtime_error.rb
foobara-0.0.18 projects/common/src/runtime_error.rb
foobara-0.0.17 projects/common/src/runtime_error.rb
foobara-0.0.16 projects/common/src/runtime_error.rb
foobara-0.0.15 projects/common/src/runtime_error.rb
foobara-0.0.14 projects/common/src/runtime_error.rb
foobara-0.0.13 projects/common/src/runtime_error.rb
foobara-0.0.12 projects/common/src/runtime_error.rb
foobara-0.0.11 projects/common/src/runtime_error.rb
foobara-0.0.10 projects/common/src/runtime_error.rb
foobara-0.0.9 projects/common/src/runtime_error.rb
foobara-0.0.8 projects/common/src/runtime_error.rb
foobara-0.0.7 projects/common/src/runtime_error.rb
foobara-0.0.6 projects/common/src/runtime_error.rb