Skip to main content

PackageUpgradeError

sealed class PackageUpgradeError : Disposable

An error with a upgrading a package

BCS

The BCS serialized form of this type is specified in bcs-schema.abnf.

Inheritors​

UnableToFetchPackage
NotAPackage
IncompatibleUpgrade
DigestDoesNotMatch
UnknownUpgradePolicy
PackageIdDoesNotMatch

Types​

NameSummary
DigestDoesNotMatchdata class DigestDoesNotMatch(val digest: Digest) : PackageUpgradeError
Digest in upgrade ticket and computed digest differ
IncompatibleUpgradeobject IncompatibleUpgrade : PackageUpgradeError
Package upgrade is incompatible with previous version
NotAPackagedata class NotAPackage(val objectId: ObjectId) : PackageUpgradeError
Object is not a package
PackageIdDoesNotMatchdata class PackageIdDoesNotMatch(val packageId: ObjectId, val ticketId: ObjectId) : PackageUpgradeError
PackageId does not matach PackageId in upgrade ticket
UnableToFetchPackagedata class UnableToFetchPackage(val packageId: ObjectId) : PackageUpgradeError
Unable to fetch package
UnknownUpgradePolicydata class UnknownUpgradePolicy(val policy: UByte) : PackageUpgradeError
Upgrade policy is not valid

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.

DigestDoesNotMatch​

data class DigestDoesNotMatch(val digest: Digest) : PackageUpgradeError

Digest in upgrade ticket and computed digest differ

Constructors​

DigestDoesNotMatchconstructor(digest: Digest)

Properties​

NameSummary
digestval digest: Digest

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.

IncompatibleUpgrade​

object IncompatibleUpgrade : PackageUpgradeError

Package upgrade is incompatible with previous version

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.

NotAPackage​

data class NotAPackage(val objectId: ObjectId) : PackageUpgradeError

Object is not a package

Constructors​

NotAPackageconstructor(objectId: ObjectId)

Properties​

NameSummary
objectIdval objectId: ObjectId

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.

PackageIdDoesNotMatch​

data class PackageIdDoesNotMatch(val packageId: ObjectId, val ticketId: ObjectId) : PackageUpgradeError

PackageId does not matach PackageId in upgrade ticket

Constructors​

PackageIdDoesNotMatchconstructor(packageId: ObjectId, ticketId: ObjectId)

Properties​

NameSummary
packageIdval packageId: ObjectId
ticketIdval ticketId: ObjectId

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.

UnableToFetchPackage​

data class UnableToFetchPackage(val packageId: ObjectId) : PackageUpgradeError

Unable to fetch package

Constructors​

UnableToFetchPackageconstructor(packageId: ObjectId)

Properties​

NameSummary
packageIdval packageId: ObjectId

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.

UnknownUpgradePolicy​

data class UnknownUpgradePolicy(val policy: UByte) : PackageUpgradeError

Upgrade policy is not valid

Constructors​

UnknownUpgradePolicyconstructor(policy: UByte)

Properties​

NameSummary
policyval policy: UByte

Functions​

NameSummary
destroyopen override fun destroy()
toBcsfun toBcs(): ByteArray
Convert this type to BCS encoded bytes.
toDisplayStringfun toDisplayString(): String
Render this type as human-readable text.
toJsonfun toJson(): String
Convert this type to a JSON encoded string.