Skip to main content

PackageUpgradeError

PackageUpgradeError​

enum PackageUpgradeError

An error with a upgrading a package

BCS

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

PackageUpgradeError.digestDoesNotMatch(digest:)​

case digestDoesNotMatch(digest: Digest)

Digest in upgrade ticket and computed digest differ

PackageUpgradeError.incompatibleUpgrade​

case incompatibleUpgrade

Package upgrade is incompatible with previous version

PackageUpgradeError.notAPackage(objectId:)​

case notAPackage(objectId: ObjectId)

Object is not a package

PackageUpgradeError.packageIdDoesNotMatch(packageId:ticketId:)​

case packageIdDoesNotMatch(packageId: ObjectId, ticketId: ObjectId)

PackageId does not matach PackageId in upgrade ticket

PackageUpgradeError.unableToFetchPackage(packageId:)​

case unableToFetchPackage(packageId: ObjectId)

Unable to fetch package

PackageUpgradeError.unknownUpgradePolicy(policy:)​

case unknownUpgradePolicy(policy: UInt8)

Upgrade policy is not valid

toBcs()​

func toBcs() throws -> Data

Convert this type to BCS encoded bytes.

toDisplayString()​

func toDisplayString() -> String

Render this type as human-readable text.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.

toJson()​

func toJson() throws -> String

Convert this type to a JSON encoded string.