Class InvalidVersionSpecificationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidVersionSpecificationException
    extends RepositoryException
    Thrown when a version or version range could not be parsed.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String version  
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidVersionSpecificationException​(java.lang.String version, java.lang.String message)
      Creates a new exception with the specified version and detail message.
      InvalidVersionSpecificationException​(java.lang.String version, java.lang.String message, java.lang.Throwable cause)
      Creates a new exception with the specified version, detail message and cause.
      InvalidVersionSpecificationException​(java.lang.String version, java.lang.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
      java.lang.String getVersion()
      Gets the version or version range that could not be parsed.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • version

        private final java.lang.String version
    • Constructor Detail

      • InvalidVersionSpecificationException

        public InvalidVersionSpecificationException​(java.lang.String version,
                                                    java.lang.String message)
        Creates a new exception with the specified version and detail message.
        Parameters:
        version - The invalid version specification, may be null.
        message - The detail message, may be null.
      • InvalidVersionSpecificationException

        public InvalidVersionSpecificationException​(java.lang.String version,
                                                    java.lang.Throwable cause)
        Creates a new exception with the specified version and cause.
        Parameters:
        version - The invalid version specification, may be null.
        cause - The exception that caused this one, may be null.
      • InvalidVersionSpecificationException

        public InvalidVersionSpecificationException​(java.lang.String version,
                                                    java.lang.String message,
                                                    java.lang.Throwable cause)
        Creates a new exception with the specified version, detail message and cause.
        Parameters:
        version - The invalid version specification, may be null.
        message - The detail message, may be null.
        cause - The exception that caused this one, may be null.
    • Method Detail

      • getVersion

        public java.lang.String getVersion()
        Gets the version or version range that could not be parsed.
        Returns:
        The invalid version specification or null if unknown.