mirror of
https://github.com/corda/corda.git
synced 2025-01-18 02:39:51 +00:00
[CORDA-2403] Fix API breakage: PermissionException and CordappImpl constructor (#4554)
* Undo renaming of c'tor parameter (API break). * Re-introduce default param in CordappImpl c'tor. * Make 'msg' a property of PermissionException to make it serializable.
This commit is contained in:
parent
4004e9473d
commit
558d2fd45c
@ -10,4 +10,4 @@ import net.corda.nodeapi.exceptions.RpcSerializableError
|
||||
* Thrown to indicate that the calling user does not have permission for something they have requested (for example
|
||||
* calling a method).
|
||||
*/
|
||||
class PermissionException(message: String) : CordaRuntimeException(message), RpcSerializableError, ClientRelevantError
|
||||
class PermissionException(val msg: String) : CordaRuntimeException(msg), RpcSerializableError, ClientRelevantError
|
@ -32,7 +32,7 @@ data class CordappImpl(
|
||||
override val jarHash: SecureHash.SHA256,
|
||||
override val minimumPlatformVersion: Int,
|
||||
override val targetPlatformVersion: Int,
|
||||
val notaryService: Class<out NotaryService>?,
|
||||
val notaryService: Class<out NotaryService>? = null,
|
||||
/** Indicates whether the CorDapp is loaded from external sources, or generated on node startup (virtual). */
|
||||
val isLoaded: Boolean = true
|
||||
) : Cordapp {
|
||||
|
Loading…
Reference in New Issue
Block a user