Reverting API breaking change in PermissionException. (#3209)

This commit is contained in:
Michele Sollecito
2018-05-22 09:48:29 +01:00
committed by GitHub
parent bff419e9af
commit 48b126321b
3 changed files with 14 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import net.corda.core.CordaRuntimeException
import net.corda.core.crypto.SecureHash
import net.corda.core.ClientRelevantError
import net.corda.core.flows.IdentifiableException
import net.corda.core.serialization.CordaSerializable
/**
* Thrown to indicate that an attachment was already uploaded to a Corda node.
@ -46,4 +47,11 @@ class OutdatedNetworkParameterHashException(old: SecureHash, new: SecureHash) :
/**
* Thrown to indicate that the command was rejected by the node, typically due to a special temporary mode.
*/
class RejectedCommandException(message: String) : CordaRuntimeException(message), ClientRelevantError
class RejectedCommandException(message: String) : CordaRuntimeException(message), ClientRelevantError
/**
* Allows an implementing [Throwable] to be propagated to RPC clients.
*/
@Deprecated("Use ClientRelevantError instead.", replaceWith = ReplaceWith("ClientRelevantError"))
@CordaSerializable
interface RpcSerializableError