Package com.github.robtimus.filesystems
Class Messages.URIMessages
- java.lang.Object
-
- com.github.robtimus.filesystems.Messages.URIMessages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IllegalArgumentExceptionhasAuthority(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has an authority component.IllegalArgumentExceptionhasFragment(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a fragment component.IllegalArgumentExceptionhasHost(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a host component.IllegalArgumentExceptionhasNoAuthority(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have an authority component.IllegalArgumentExceptionhasNoFragment(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a fragment component.IllegalArgumentExceptionhasNoHost(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a host component.IllegalArgumentExceptionhasNoPath(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a path component.IllegalArgumentExceptionhasNoPort(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a port number.IllegalArgumentExceptionhasNoQuery(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a query component.IllegalArgumentExceptionhasNoUserInfo(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a user-info component.IllegalArgumentExceptionhasPath(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a path component.IllegalArgumentExceptionhasPort(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a port number.IllegalArgumentExceptionhasQuery(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a query component.IllegalArgumentExceptionhasUserInfo(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a user-info component.IllegalArgumentExceptioninvalidScheme(URI uri, String expectedScheme)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has an invalid scheme.IllegalArgumentExceptionnotAbsolute(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) is not absolute.IllegalArgumentExceptionnotHierarchical(URI uri)Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) is not hierarchical.
-
-
-
Method Detail
-
invalidScheme
public IllegalArgumentException invalidScheme(URI uri, String expectedScheme)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has an invalid scheme.- Parameters:
uri- The URI with the invalid scheme.expectedScheme- The expected scheme.- Returns:
- The created exception.
- See Also:
URI.getScheme()
-
notAbsolute
public IllegalArgumentException notAbsolute(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) is not absolute.- Parameters:
uri- The non-absolute URI.- Returns:
- The created exception.
- See Also:
URI.isAbsolute()
-
notHierarchical
public IllegalArgumentException notHierarchical(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) is not hierarchical. This is the same as being opaque.- Parameters:
uri- The non-hierarchical URI.- Returns:
- The created exception.
- See Also:
URI.isOpaque()
-
hasAuthority
public IllegalArgumentException hasAuthority(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has an authority component.- Parameters:
uri- The URI with the authority component.- Returns:
- The created exception.
- See Also:
URI.getAuthority(),hasNoAuthority(URI)
-
hasFragment
public IllegalArgumentException hasFragment(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a fragment component.- Parameters:
uri- The URI with the fragment component.- Returns:
- The created exception.
- See Also:
URI.getFragment(),hasNoFragment(URI)
-
hasHost
public IllegalArgumentException hasHost(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a host component.- Parameters:
uri- The URI with the host component.- Returns:
- The created exception.
- See Also:
URI.getHost(),hasNoHost(URI)
-
hasPath
public IllegalArgumentException hasPath(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a path component.- Parameters:
uri- The URI with the path component.- Returns:
- The created exception.
- See Also:
URI.getPath(),hasNoHost(URI)
-
hasPort
public IllegalArgumentException hasPort(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a port number.- Parameters:
uri- The URI with the port number.- Returns:
- The created exception.
- See Also:
URI.getPort(),hasNoPort(URI)
-
hasQuery
public IllegalArgumentException hasQuery(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a query component.- Parameters:
uri- The URI with the query component.- Returns:
- The created exception.
- See Also:
URI.getQuery(),hasNoQuery(URI)
-
hasUserInfo
public IllegalArgumentException hasUserInfo(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) has a user-info component.- Parameters:
uri- The URI with the user-info component.- Returns:
- The created exception.
- See Also:
URI.getUserInfo(),hasNoUserInfo(URI)
-
hasNoAuthority
public IllegalArgumentException hasNoAuthority(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have an authority component.- Parameters:
uri- The URI without the authority component.- Returns:
- The created exception.
- See Also:
URI.getAuthority(),hasAuthority(URI)
-
hasNoFragment
public IllegalArgumentException hasNoFragment(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a fragment component.- Parameters:
uri- The URI without the fragment component.- Returns:
- The created exception.
- See Also:
URI.getFragment(),hasFragment(URI)
-
hasNoHost
public IllegalArgumentException hasNoHost(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a host component.- Parameters:
uri- The URI without the host component.- Returns:
- The created exception.
- See Also:
URI.getHost(),hasHost(URI)
-
hasNoPath
public IllegalArgumentException hasNoPath(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a path component.- Parameters:
uri- The URI without the path component.- Returns:
- The created exception.
- See Also:
URI.getPath(),hasPath(URI)
-
hasNoPort
public IllegalArgumentException hasNoPort(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a port number.- Parameters:
uri- The URI without the port number.- Returns:
- The created exception.
- See Also:
URI.getPort(),hasPort(URI)
-
hasNoQuery
public IllegalArgumentException hasNoQuery(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a query component.- Parameters:
uri- The URI without the query component.- Returns:
- The created exception.
- See Also:
URI.getQuery(),hasQuery(URI)
-
hasNoUserInfo
public IllegalArgumentException hasNoUserInfo(URI uri)
Creates an exception that can be thrown if a URI (e.g. used forFileSystemProvider.getPath(URI)) does not have a user-info component.- Parameters:
uri- The URI without the user-info component.- Returns:
- The created exception.
- See Also:
URI.getUserInfo(),hasUserInfo(URI)
-
-