mirror of
https://github.com/corda/corda.git
synced 2025-06-16 22:28:15 +00:00
Reverting API breaking change in PermissionException. (#3209)
This commit is contained in:
committed by
GitHub
parent
bff419e9af
commit
48b126321b
@ -6563,7 +6563,7 @@ public final class net.corda.client.rpc.CordaRPCConnection extends java.lang.Obj
|
|||||||
public int getServerProtocolVersion()
|
public int getServerProtocolVersion()
|
||||||
public void notifyServerAndClose()
|
public void notifyServerAndClose()
|
||||||
##
|
##
|
||||||
public final class net.corda.client.rpc.PermissionException extends net.corda.core.CordaRuntimeException implements net.corda.nodeapi.exceptions.RpcSerializableError
|
public final class net.corda.client.rpc.PermissionException extends net.corda.core.CordaRuntimeException implements net.corda.nodeapi.exceptions.RpcSerializableError, net.corda.core.ClientRelevantError
|
||||||
public <init>(String)
|
public <init>(String)
|
||||||
##
|
##
|
||||||
@DoNotImplement
|
@DoNotImplement
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
|
@file:Suppress("DEPRECATION")
|
||||||
|
|
||||||
package net.corda.client.rpc
|
package net.corda.client.rpc
|
||||||
|
|
||||||
import net.corda.core.CordaRuntimeException
|
import net.corda.core.CordaRuntimeException
|
||||||
import net.corda.core.ClientRelevantError
|
import net.corda.core.ClientRelevantError
|
||||||
|
import net.corda.nodeapi.exceptions.RpcSerializableError
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown to indicate that the calling user does not have permission for something they have requested (for example
|
* Thrown to indicate that the calling user does not have permission for something they have requested (for example
|
||||||
* calling a method).
|
* calling a method).
|
||||||
*/
|
*/
|
||||||
class PermissionException(message: String) : CordaRuntimeException(message), ClientRelevantError
|
class PermissionException(message: String) : CordaRuntimeException(message), RpcSerializableError, ClientRelevantError
|
@ -4,6 +4,7 @@ import net.corda.core.CordaRuntimeException
|
|||||||
import net.corda.core.crypto.SecureHash
|
import net.corda.core.crypto.SecureHash
|
||||||
import net.corda.core.ClientRelevantError
|
import net.corda.core.ClientRelevantError
|
||||||
import net.corda.core.flows.IdentifiableException
|
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.
|
* 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.
|
* 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
|
Reference in New Issue
Block a user