From d63a3a89233dd8ca8ae462c76796be7fa24a153e Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Tue, 8 Mar 2016 17:27:21 +0100 Subject: [PATCH] Minor: add a toString for the UnknownFix exception --- src/main/kotlin/core/node/services/NodeInterestRates.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/core/node/services/NodeInterestRates.kt b/src/main/kotlin/core/node/services/NodeInterestRates.kt index 9b3eef196b..2ce6dacd90 100644 --- a/src/main/kotlin/core/node/services/NodeInterestRates.kt +++ b/src/main/kotlin/core/node/services/NodeInterestRates.kt @@ -163,5 +163,7 @@ object NodeInterestRates { } } - class UnknownFix(val fix: FixOf) : Exception() + class UnknownFix(val fix: FixOf) : Exception() { + override fun toString() = "Unknown fix: $fix" + } } \ No newline at end of file