Package com.github.robtimus.filesystems
Class Messages.FileSystemProviderEnvMessages
- java.lang.Object
-
- com.github.robtimus.filesystems.Messages.FileSystemProviderEnvMessages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IllegalArgumentException
invalidProperty(String property, Object value)
Creates an exception that can be thrown ifFileSystemProvider.newFileSystem(URI, Map)
orFileSystemProvider.newFileSystem(Path, Map)
is called with an invalid value for a property.IllegalArgumentException
invalidPropertyCombination(Collection<String> properties)
Creates an exception that can be thrown ifFileSystemProvider.newFileSystem(URI, Map)
orFileSystemProvider.newFileSystem(Path, Map)
is called with an invalid combination of properties.IllegalArgumentException
missingProperty(String property)
Creates an exception that can be thrown ifFileSystemProvider.newFileSystem(URI, Map)
orFileSystemProvider.newFileSystem(Path, Map)
is called with a required property missing.
-
-
-
Method Detail
-
missingProperty
public IllegalArgumentException missingProperty(String property)
Creates an exception that can be thrown ifFileSystemProvider.newFileSystem(URI, Map)
orFileSystemProvider.newFileSystem(Path, Map)
is called with a required property missing.- Parameters:
property
- The name of the missing property.- Returns:
- The created exception.
-
invalidProperty
public IllegalArgumentException invalidProperty(String property, Object value)
Creates an exception that can be thrown ifFileSystemProvider.newFileSystem(URI, Map)
orFileSystemProvider.newFileSystem(Path, Map)
is called with an invalid value for a property.- Parameters:
property
- The name of the property.value
- The invalid value.- Returns:
- The created exception.
-
invalidPropertyCombination
public IllegalArgumentException invalidPropertyCombination(Collection<String> properties)
Creates an exception that can be thrown ifFileSystemProvider.newFileSystem(URI, Map)
orFileSystemProvider.newFileSystem(Path, Map)
is called with an invalid combination of properties.- Parameters:
properties
- The names of the properties.- Returns:
- The created exception.
-
-