diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/response/client/FinTsClientResponse.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/response/client/FinTsClientResponse.kt index 3485e97f..96d5ac0b 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/response/client/FinTsClientResponse.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/response/client/FinTsClientResponse.kt @@ -39,4 +39,21 @@ open class FinTsClientResponse( return Response(this.isSuccessful) } + + override fun toString(): String { + if (noTanProcedureSelected) { + return "Error: No TAN procedure selected" + } + + if (isJobAllowed == false) { + return "Error: Job is not allowed" + } + + if (isJobVersionSupported == false) { + return "Error: Job version is not supported. Supported versions are $supportedVersions" + } + + return "isSuccessful = $isSuccessful" + } + } \ No newline at end of file