Class VersionRangeResolutionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.aether.RepositoryException
org.eclipse.aether.resolution.VersionRangeResolutionException
All Implemented Interfaces:
Serializable

public class VersionRangeResolutionException extends RepositoryException
Thrown in case of an unparseable or unresolvable version range.
See Also:
  • Field Details

  • Constructor Details

    • VersionRangeResolutionException

      public VersionRangeResolutionException(VersionRangeResult result)
      Creates a new exception with the specified result.
      Parameters:
      result - The version range result at the point the exception occurred, may be null.
    • VersionRangeResolutionException

      public VersionRangeResolutionException(VersionRangeResult result, String message)
      Creates a new exception with the specified result and detail message.
      Parameters:
      result - The version range result at the point the exception occurred, may be null.
      message - The detail message, may be null.
    • VersionRangeResolutionException

      public VersionRangeResolutionException(VersionRangeResult result, String message, Throwable cause)
      Creates a new exception with the specified result, detail message and cause.
      Parameters:
      result - The version range result at the point the exception occurred, may be null.
      message - The detail message, may be null.
      cause - The exception that caused this one, may be null.
  • Method Details

    • getMessage

      private static String getMessage(VersionRangeResult result)
    • getCause

      private static Throwable getCause(VersionRangeResult result)
    • getResult

      public VersionRangeResult getResult()
      Gets the version range 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 range result or null if unknown.