Package com.github.robtimus.filesystems
Class Messages.ByteChannelMessages
- java.lang.Object
-
- com.github.robtimus.filesystems.Messages.ByteChannelMessages
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IllegalArgumentException
negativePosition(long position)
Creates an exception that can be thrown ifSeekableByteChannel.position(long)
is called with a negative position.IllegalArgumentException
negativeSize(long size)
Creates an exception that can be thrown ifSeekableByteChannel.truncate(long)
is called with a negative size.
-
-
-
Method Detail
-
negativePosition
public IllegalArgumentException negativePosition(long position)
Creates an exception that can be thrown ifSeekableByteChannel.position(long)
is called with a negative position.- Parameters:
position
- The negative position.- Returns:
- The created exception.
-
negativeSize
public IllegalArgumentException negativeSize(long size)
Creates an exception that can be thrown ifSeekableByteChannel.truncate(long)
is called with a negative size.- Parameters:
size
- The negative size.- Returns:
- The created exception.
-
-