UploadCollisionException class

One build number naming two commits — the thing recordUpload exists to refuse.

Its own type so a wrapper can tell it apart from an ordinary upload failure, which matters more than it looks. Release scripts routinely tolerate a store refusing a build it already has — re-running a release is meant to be a no-op, so the upload is called under || exitCode=$? and the pipeline carries on. A collision exiting through that same path is reported as the tolerable kind and the release finishes green, which turns the loudest error here into the quietest. A distinct type gives the CLI a distinct exit code, and the wrapper something to match on.

Inheritance

Constructors

UploadCollisionException(String message)

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited