Package org.eclipse.aether.version
Class InvalidVersionSpecificationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.version.InvalidVersionSpecificationException
-
- All Implemented Interfaces:
Serializable
public class InvalidVersionSpecificationException extends RepositoryException
Thrown when a version or version range could not be parsed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidVersionSpecificationException(String version, String message)
Creates a new exception with the specified version and detail message.InvalidVersionSpecificationException(String version, String message, Throwable cause)
Creates a new exception with the specified version, detail message and cause.InvalidVersionSpecificationException(String version, Throwable cause)
Creates a new exception with the specified version and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getVersion()
Gets the version or version range that could not be parsed.-
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 Detail
-
InvalidVersionSpecificationException
public InvalidVersionSpecificationException(String version, String message)
Creates a new exception with the specified version and detail message.- Parameters:
version
- The invalid version specification, may benull
.message
- The detail message, may benull
.
-
InvalidVersionSpecificationException
public InvalidVersionSpecificationException(String version, Throwable cause)
Creates a new exception with the specified version and cause.- Parameters:
version
- The invalid version specification, may benull
.cause
- The exception that caused this one, may benull
.
-
InvalidVersionSpecificationException
public InvalidVersionSpecificationException(String version, String message, Throwable cause)
Creates a new exception with the specified version, detail message and cause.- Parameters:
version
- The invalid version specification, may benull
.message
- The detail message, may benull
.cause
- The exception that caused this one, may benull
.
-
-
Method Detail
-
getVersion
public String getVersion()
Gets the version or version range that could not be parsed.- Returns:
- The invalid version specification or
null
if unknown.
-
-