Sha256: 545114af96b8851cd94007f6805ede25aedec6983281cee1e2e9b5644f949c99
Contents?: true
Size: 963 Bytes
Versions: 2
Compression:
Stored size: 963 Bytes
Contents
module PerconaMigrator class Error < StandardError; end # Used when for whatever reason we couldn't get the spawned process' # status. class NoStatusError < Error def message 'Status could not be retrieved'.freeze end end # Used when the spawned process failed by receiving a signal. # pt-online-schema-change returns "SIGSEGV (signal 11)" on failures. class SignalError < Error attr_reader :status # Constructor # # @param status [Process::Status] def initialize(status) super @status = status end def message status.to_s end end class CommandNotFoundError < Error def message 'Please install pt-online-schema-change. Check: https://www.percona.com/doc/percona-toolkit for further details' end end # Used to prevent running the db:migrate rake task when providing arguments # through PERCONA_ARGS env var class ArgumentsNotSupported < Error; end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
percona_migrator-3.0.0 | lib/percona_migrator/errors.rb |
percona_migrator-1.1.0 | lib/percona_migrator/errors.rb |