[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:
Florian Friemel 2019-01-11 17:39:22 +00:00 committed by GitHub
parent 4004e9473d
commit 558d2fd45c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 {