mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 14:42:37 +01:00
Rename exception variables to ex
Update the name of exception variables to ex for consistency and better readability.
This commit is contained in:
parent
141ead0b2f
commit
3e314a9d24
1 changed files with 8 additions and 8 deletions
|
@ -118,17 +118,17 @@ public abstract class ExchangeRateProvider extends PriceProvider<Set<ExchangeRat
|
|||
t.getTimestamp() == null ? new Date() : t.getTimestamp(),
|
||||
this.getName()
|
||||
));
|
||||
} catch (CurrencyPairNotValidException cpnve) {
|
||||
} catch (CurrencyPairNotValidException ex) {
|
||||
// Some exchanges support certain currency pairs for other
|
||||
// services but not for spot markets. In that case, trying to
|
||||
// retrieve the market ticker for that pair may fail with this
|
||||
// specific type of exception
|
||||
log.info("Currency pair " + cp + " not supported in Spot Markets: " + cpnve.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.info("Currency pair " + cp + " not supported in Spot Markets: " + ex.getMessage());
|
||||
} catch (Exception ex) {
|
||||
// Catch any other type of generic exception (IO, network level,
|
||||
// rate limit reached, etc)
|
||||
log.info("Exception encountered while retrieving rate for currency pair " + cp + ": " +
|
||||
e.getMessage());
|
||||
ex.getMessage());
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -147,17 +147,17 @@ public abstract class ExchangeRateProvider extends PriceProvider<Set<ExchangeRat
|
|||
t.getTimestamp() == null ? new Date() : t.getTimestamp(),
|
||||
this.getName()
|
||||
));
|
||||
} catch (CurrencyPairNotValidException cpnve) {
|
||||
} catch (CurrencyPairNotValidException ex) {
|
||||
// Some exchanges support certain currency pairs for other
|
||||
// services but not for spot markets. In that case, trying to
|
||||
// retrieve the market ticker for that pair may fail with this
|
||||
// specific type of exception
|
||||
log.info("Currency pair " + cp + " not supported in Spot Markets: " + cpnve.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.info("Currency pair " + cp + " not supported in Spot Markets: " + ex.getMessage());
|
||||
} catch (Exception ex) {
|
||||
// Catch any other type of generic exception (IO, network level,
|
||||
// rate limit reached, etc)
|
||||
log.info("Exception encountered while retrieving rate for currency pair " + cp + ": " +
|
||||
e.getMessage());
|
||||
ex.getMessage());
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue