ENT-5492: Don't do reconnect logic on illegal argument for attachments (#6693)

* ENT-5492: Don't do reconnect logic on illegal argument for attachments

* Use a dedicated exception for missing attachments.
This commit is contained in:
Ryan Fowler
2020-09-09 12:20:16 +01:00
committed by GitHub
parent fd341c7e48
commit 6f2cac146c
4 changed files with 16 additions and 5 deletions

View File

@ -35,6 +35,12 @@ class RejectedCommandException(message: String) :
CordaRuntimeException(message),
@Suppress("DEPRECATION") net.corda.core.ClientRelevantError
/**
* Thrown to indicate that the command was rejected by the node, typically due to a special temporary mode.
*/
class MissingAttachmentException(message: String) :
CordaRuntimeException(message)
/**
* Allows an implementing [Throwable] to be propagated to RPC clients.
*/