File: errors.rb

package info (click to toggle)
ruby-backports 3.25.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,912 kB
  • sloc: ruby: 11,757; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 329 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
# shareable_constant_value: literal

module Backports
  class Ractor
    class ClosedError < ::StopIteration
    end

    class Error < ::StandardError
    end

    class RemoteError < Error
      attr_reader :ractor

      def initialize(message = nil)
        @ractor = Ractor.current
        super
      end
    end
  end
end