@@ -41,10 +41,10 @@ public class CurrencyConversionException extends MonetaryException {
41
41
* Constructs an <code>CurrencyConversionException</code> with the specified
42
42
* detail message, timestamp, source and target currency.
43
43
*
44
- * @param source
44
+ * @param base
45
45
* the source currency, may be null.
46
46
*
47
- * @param target
47
+ * @param term
48
48
* the target currency, may be null.
49
49
*
50
50
* @param message
@@ -63,10 +63,10 @@ public CurrencyConversionException(CurrencyUnit base,
63
63
* Constructs an <code>CurrencyConversionException</code> with the specified
64
64
* source and target currency.
65
65
*
66
- * @param source
66
+ * @param base
67
67
* the source currency, may be null.
68
68
*
69
- * @param target
69
+ * @param term
70
70
* the target currency, may be null.
71
71
*/
72
72
public CurrencyConversionException (CurrencyUnit base ,
@@ -86,9 +86,9 @@ public CurrencyConversionException(CurrencyUnit base,
86
86
* Note that the detail message associated with <code>cause</code> is
87
87
* <i>not</i> automatically incorporated in this exception's detail message.
88
88
*
89
- * @param source
89
+ * @param base
90
90
* the source currency, may be null.
91
- * @param target
91
+ * @param term
92
92
* the target currency, may be null.
93
93
* @param message
94
94
* the detail message (which is saved for later retrieval by the
@@ -101,7 +101,9 @@ public CurrencyConversionException(CurrencyUnit base,
101
101
*/
102
102
public CurrencyConversionException (CurrencyUnit base ,
103
103
CurrencyUnit term , Long timestamp , String message , Throwable cause ) {
104
- super (message , cause );
104
+ super ("Cannot convert " + String .valueOf (base ) + " into "
105
+ + String .valueOf (term ) + (message != null ? ": " + message : "" ),
106
+ cause );
105
107
this .base = base ;
106
108
this .term = term ;
107
109
this .timestamp = timestamp ;
0 commit comments