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
-
- Object
- ReleaseException
- UploadCollisionException
Constructors
- UploadCollisionException(String message)
Properties
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