Exception: MixinBot::UtxoInsufficientError

Inherits:
InsufficientBalanceError show all
Defined in:
lib/mixin_bot/errors.rb

Overview

Raised when selected UTXOs cannot cover the requested amount (mirrors Go UtxoInsufficientError).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, total_input: nil, total_output: nil, output_size: nil) ⇒ UtxoInsufficientError

Returns a new instance of UtxoInsufficientError.



60
61
62
63
64
65
# File 'lib/mixin_bot/errors.rb', line 60

def initialize(message, total_input: nil, total_output: nil, output_size: nil)
  super(message)
  @total_input = total_input
  @total_output = total_output
  @output_size = output_size
end

Instance Attribute Details

#output_sizeObject (readonly)

Returns the value of attribute output_size.



58
59
60
# File 'lib/mixin_bot/errors.rb', line 58

def output_size
  @output_size
end

#total_inputObject (readonly)

Returns the value of attribute total_input.



58
59
60
# File 'lib/mixin_bot/errors.rb', line 58

def total_input
  @total_input
end

#total_outputObject (readonly)

Returns the value of attribute total_output.



58
59
60
# File 'lib/mixin_bot/errors.rb', line 58

def total_output
  @total_output
end