class Fabric::CommitError
TODO: Add RSpec Tests for CommitError
@todo TEST ME!
Attributes
code[R]
transaction_id[R]
Public Class Methods
new(status)
click to toggle source
Creates a transaction commit error from the status
@param [Fabric::Status] status transaction status
Calls superclass method
# File lib/fabric.rb, line 48 def initialize(status) super("Transaction #{status.transaction_id} failed to commit with status code #{status.code} - " + Status::TRANSACTION_STATUSES.key(status.code).to_s) @code = code @transaction_id = status.transaction_id end