Exception: MixinBot::UtxoInsufficientError
- Inherits:
-
InsufficientBalanceError
- Object
- StandardError
- Error
- InsufficientBalanceError
- MixinBot::UtxoInsufficientError
- Defined in:
- lib/mixin_bot/errors.rb
Overview
Raised when selected UTXOs cannot cover the requested amount (mirrors Go UtxoInsufficientError).
Instance Attribute Summary collapse
-
#output_size ⇒ Object
readonly
Returns the value of attribute output_size.
-
#total_input ⇒ Object
readonly
Returns the value of attribute total_input.
-
#total_output ⇒ Object
readonly
Returns the value of attribute total_output.
Instance Method Summary collapse
-
#initialize(message, total_input: nil, total_output: nil, output_size: nil) ⇒ UtxoInsufficientError
constructor
A new instance of UtxoInsufficientError.
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(, total_input: nil, total_output: nil, output_size: nil) super() @total_input = total_input @total_output = total_output @output_size = output_size end |
Instance Attribute Details
#output_size ⇒ Object (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_input ⇒ Object (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_output ⇒ Object (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 |