Exception: PtOnlineSchemaChange::ErrorHandler::PtOscError
- Inherits:
-
StandardError
- Object
- StandardError
- PtOnlineSchemaChange::ErrorHandler::PtOscError
- Defined in:
- app/my_lib/pt_online_schema_change/error_handler.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(message, exit_code: nil, output: nil, table_name: nil) ⇒ PtOscError
constructor
A new instance of PtOscError.
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(, exit_code: nil, output: nil, table_name: nil) super() @exit_code = exit_code @output = output @table_name = table_name end |
Instance Attribute Details
#exit_code ⇒ Object (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 |
#output ⇒ Object (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_name ⇒ Object (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 |