Exception: PerconaMigrator::SignalError

Inherits:
Error
  • Object
show all
Defined in:
lib/percona_migrator/errors.rb

Overview

Used when the spawned process failed by receiving a signal. pt-online-schema-change returns “SIGSEGV (signal 11)” on failures.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ SignalError

Constructor

Parameters:

  • status (Process::Status)


20
21
22
23
# File 'lib/percona_migrator/errors.rb', line 20

def initialize(status)
  super
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



15
16
17
# File 'lib/percona_migrator/errors.rb', line 15

def status
  @status
end

Instance Method Details

#messageObject



25
26
27
# File 'lib/percona_migrator/errors.rb', line 25

def message
  status.to_s
end