Skip to content

Commit

Permalink
OPEN - task 2: Adjust to API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Dec 15, 2013
1 parent 3630a57 commit 821e37b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import javax.money.CurrencyUnit;
import javax.money.MonetaryException;
import javax.money.UnknownCurrencyException;

import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.map.ObjectMapper;
Expand All @@ -32,7 +33,6 @@
import org.javamoney.convert.ExchangeRate;
import org.javamoney.convert.ExchangeRateType;
import org.javamoney.convert.provider.DefaultCurrencyConverter;
import org.javamoney.util.UnknownCurrencyException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -170,7 +170,7 @@ void loadRate(String curCode, boolean verbose) {
}
if (verbose) System.out.println( "display_short : " +lastNode.path("display_short").getTextValue());
} else {
throw new UnknownCurrencyException("Currency not supported", curCode);
throw new UnknownCurrencyException(curCode);
}
}

Expand Down

0 comments on commit 821e37b

Please sign in to comment.