
com.nthportal.versions.VersionFormatException.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of versions_2.11 Show documentation
Show all versions of versions_2.11 Show documentation
A Scala library for representing versions as objects.
The newest version!
package com.nthportal.versions
/**
* An exception which is thrown when attempting to create a version
* from a string which is not a valid version string.
*
* @param version the invalid version string
* @param cause the root cause of this exception
*/
final class VersionFormatException(version: String, cause: Throwable)
extends IllegalArgumentException(s"Invalid version string: $version", cause) {
/**
* Creates an exception with the given invalid version string.
*
* @param version the invalid version string string
* @return an exception from the given invalid version string
*/
def this(version: String) = this(version, null)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy