Exception: MixinBot::UtxoInsufficientError
- Inherits:
-
InsufficientBalanceError
- Object
- StandardError
- Error
- APIError
- 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.
Attributes inherited from APIError
#body, #code, #description, #extra, #http_status, #path, #request_id, #retry_after, #server_time, #status, #verb
Instance Method Summary collapse
-
#initialize(message = nil, total_input: nil, total_output: nil, output_size: nil) ⇒ UtxoInsufficientError
constructor
A new instance of UtxoInsufficientError.
Methods inherited from APIError
build, #client_error?, #formatted_message, #retryable?, #throttle?
Constructor Details
#initialize(message = nil, total_input: nil, total_output: nil, output_size: nil) ⇒ UtxoInsufficientError
Returns a new instance of UtxoInsufficientError.
242 243 244 245 246 247 |
# File 'lib/mixin_bot/errors.rb', line 242 def initialize( = nil, 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.
240 241 242 |
# File 'lib/mixin_bot/errors.rb', line 240 def output_size @output_size end |
#total_input ⇒ Object (readonly)
Returns the value of attribute total_input.
240 241 242 |
# File 'lib/mixin_bot/errors.rb', line 240 def total_input @total_input end |
#total_output ⇒ Object (readonly)
Returns the value of attribute total_output.
240 241 242 |
# File 'lib/mixin_bot/errors.rb', line 240 def total_output @total_output end |