InsufficientGasError
Documentation for eth_defi.gmx.gas_monitor.InsufficientGasError exception.
- exception InsufficientGasError
Bases:
ccxt.base.errors.InsufficientFundsRaised when gas balance is critically low.
Inherits from CCXT’s
InsufficientFundsso Freqtrade’s built-in handler (handle_insufficient_funds) catches it automatically.Initialise with message and gas check result.
- Parameters
message – Error message
gas_check – The gas check result that triggered the error
- __init__(message, gas_check)
Initialise with message and gas check result.
- Parameters
message (str) – Error message
gas_check (eth_defi.gmx.gas_monitor.GasCheckResult) – The gas check result that triggered the error
- __new__(**kwargs)
- add_note()
Exception.add_note(note) – add a note to the exception
- with_traceback()
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.