fail_msg_writer()<<tr("no connection to daemon. Please make sure daemon is running.");
}
catch(consttools::error::wallet_rpc_error&e)
{
LOG_ERROR("RPC error: "<<e.to_string());
fail_msg_writer()<<tr("RPC error: ")<<e.what();
}
catch(consttools::error::get_random_outs_error&e)
{
fail_msg_writer()<<tr("failed to get random outputs to mix: ")<<e.what();
}
catch(consttools::error::not_enough_money&e)
{
LOG_PRINT_L0(boost::format("not enough money to transfer, available only %s, sent amount %s")%
print_money(e.available())%
print_money(e.tx_amount()));
fail_msg_writer()<<tr("Not enough money in unlocked balance");
}
catch(consttools::error::tx_not_possible&e)
{
LOG_PRINT_L0(boost::format("not enough money to transfer, available only %s, transaction amount %s = %s + %s (fee)")%
print_money(e.available())%
print_money(e.tx_amount()+e.fee())%
print_money(e.tx_amount())%
print_money(e.fee()));
fail_msg_writer()<<tr("Failed to find a way to create transactions. This is usually due to dust which is so small it cannot pay for itself in fees, or trying to send more money than the unlocked balance, or not leaving enough for fees");