Package org.eclipse.aether.resolution
Class VersionResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.aether.RepositoryException
org.eclipse.aether.resolution.VersionResolutionException
- All Implemented Interfaces:
Serializable
Thrown in case of an unresolvable metaversion.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new exception with the specified result.VersionResolutionException
(VersionResult result, String message) Creates a new exception with the specified result and detail message.VersionResolutionException
(VersionResult result, String message, Throwable cause) Creates a new exception with the specified result, detail message and cause. -
Method Summary
Modifier and TypeMethodDescriptionGets the version result at the point the exception occurred.Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VersionResolutionException
Creates a new exception with the specified result.- Parameters:
result
- The version result at the point the exception occurred, may benull
.
-
VersionResolutionException
Creates a new exception with the specified result and detail message.- Parameters:
result
- The version result at the point the exception occurred, may benull
.message
- The detail message, may benull
.
-
VersionResolutionException
Creates a new exception with the specified result, detail message and cause.- Parameters:
result
- The version result at the point the exception occurred, may benull
.message
- The detail message, may benull
.cause
- The exception that caused this one, may benull
.
-
-
Method Details
-
getResult
Gets the version result at the point the exception occurred. Despite being incomplete, callers might want to use this result to fail gracefully and continue their operation with whatever interim data has been gathered.- Returns:
- The version result or
null
if unknown.
-