Sha256: 421286f377203c84ff8eb9bfe13c33c639c506e035b50a4c1a6c16bfc4cee1ee

Contents?: true

Size: 798 Bytes

Versions: 7

Compression:

Stored size: 798 Bytes

Contents

# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2019-2022, by Samuel Williams.

module Async
	module Container
		class Error < StandardError
		end
		
		Interrupt = ::Interrupt
		
		# Similar to {Interrupt}, but represents `SIGTERM`.
		class Terminate < SignalException
			SIGTERM = Signal.list['TERM']

			def initialize
				super(SIGTERM)
			end
		end
		
		class Hangup < SignalException
			SIGHUP = Signal.list['HUP']
			
			def initialize
				super(SIGHUP)
			end
		end
		
		# Represents the error which occured when a container failed to start up correctly.
		class SetupError < Error
			def initialize(container)
				super("Could not create container!")
				
				@container = container
			end
			
			# The container that failed.
			attr :container
		end
	end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
async-container-0.18.3 lib/async/container/error.rb
async-container-0.18.2 lib/async/container/error.rb
async-container-0.18.1 lib/async/container/error.rb
async-container-0.18.0 lib/async/container/error.rb
async-container-0.17.1 lib/async/container/error.rb
async-container-0.17.0 lib/async/container/error.rb
async-container-0.16.13 lib/async/container/error.rb