Class ArtifactNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.intisy.gradle.github.api.ArtifactNotFoundException
- All Implemented Interfaces:
Serializable
Thrown when a requested release, or a release asset, genuinely does not exist: no release
matches the requested tag, or a matched release has no jar asset satisfying the request.
This is distinct from a download or API failure (an I/O error, a non-2xx response, a rate
limit): those keep their own exception types and are never represented by this one. A caller
that wants "not there" reported as an empty value rather than a thrown exception can catch this
specifically, as Releases.downloadJar(java.lang.String, java.lang.String, java.lang.String)
does to produce Optional.empty().
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ArtifactNotFoundException
- Parameters:
message- the detailed, user-facing error message.coordinate- theowner/repo:versioncoordinate that could not be found.
-
-
Method Details
-
getCoordinate
- Returns:
- the
owner/repo:versioncoordinate that could not be found.
-