Exception: PtOnlineSchemaChange::ErrorHandler::PtOscError

Inherits:
StandardError
  • Object
show all
Defined in:
app/my_lib/pt_online_schema_change/error_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exit_code: nil, output: nil, table_name: nil) ⇒ PtOscError

Returns a new instance of PtOscError.



6
7
8
9
10
11
# File 'app/my_lib/pt_online_schema_change/error_handler.rb', line 6

def initialize(message, exit_code: nil, output: nil, table_name: nil)
  super(message)
  @exit_code = exit_code
  @output = output
  @table_name = table_name
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



4
5
6
# File 'app/my_lib/pt_online_schema_change/error_handler.rb', line 4

def exit_code
  @exit_code
end

#outputObject (readonly)

Returns the value of attribute output.



4
5
6
# File 'app/my_lib/pt_online_schema_change/error_handler.rb', line 4

def output
  @output
end

#table_nameObject (readonly)

Returns the value of attribute table_name.



4
5
6
# File 'app/my_lib/pt_online_schema_change/error_handler.rb', line 4

def table_name
  @table_name
end