NotLinkException

  • NotLinkException is a checked exception indicating a file system operation failed because the file is not a symbolic link.

  • It extends FileSystemException and provides constructors to specify the file and reason for the failure.

  • Inherited methods from FileSystemException allow access to details like the file, other file involved, and reason for the exception.

  • It also inherits methods from Throwable for stack trace and exception handling.

public class NotLinkException extends FileSystemException

Checked exception thrown when a file system operation fails because a file is not a symbolic link.

Public Constructor Summary

NotLinkException(String file)
Constructs an instance of this class.
NotLinkException(String file, String other, String reason)
Constructs an instance of this class.

Inherited Method Summary

Public Constructors

public NotLinkException (String file)

Constructs an instance of this class.

Parameters
file a string identifying the file or null if not known

public NotLinkException (String file, String other, String reason)

Constructs an instance of this class.

Parameters
file a string identifying the file or null if not known
other a string identifying the other file or null if not known
reason a reason message with additional information or null