Package com.github.robtimus.filesystems
Class Messages.PathMatcherMessages
- java.lang.Object
-
- com.github.robtimus.filesystems.Messages.PathMatcherMessages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Messages.PathMatcherGlobMessages
glob()
Returns an object for providing translated messages and exceptions for globs.IllegalArgumentException
syntaxNotFound(String syntaxAndInput)
Creates an exception that can be thrown ifFileSystem.getPathMatcher(String)
is called with a string that does not contain a syntax part.UnsupportedOperationException
unsupportedPathMatcherSyntax(String syntax)
Creates an exception that can be thrown ifFileSystem.getPathMatcher(String)
is called with an unsupported syntax.
-
-
-
Method Detail
-
glob
public Messages.PathMatcherGlobMessages glob()
Returns an object for providing translated messages and exceptions for globs.- Returns:
- An object for providing translated messages and exceptions for globs.
-
syntaxNotFound
public IllegalArgumentException syntaxNotFound(String syntaxAndInput)
Creates an exception that can be thrown ifFileSystem.getPathMatcher(String)
is called with a string that does not contain a syntax part.- Parameters:
syntaxAndInput
- The input toFileSystem.getPathMatcher(String)
that's missing the syntax.- Returns:
- The created exception.
-
unsupportedPathMatcherSyntax
public UnsupportedOperationException unsupportedPathMatcherSyntax(String syntax)
Creates an exception that can be thrown ifFileSystem.getPathMatcher(String)
is called with an unsupported syntax.- Parameters:
syntax
- The unsupported syntax.- Returns:
- The created exception.
-
-