Class FileSystemException.FileException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.filesystem.FileSystemException
org.refcodes.filesystem.FileSystemException.FileException
All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, FileHandleAccessor
Direct Known Subclasses:
ConcurrentAccessException, FileSystemException.FileException.NoAccessException, IllegalFileException, UnknownFileException
Enclosing class:
FileSystemException

protected abstract static class FileSystemException.FileException extends FileSystemException implements FileHandleAccessor
See Also:
  • Field Details

  • Constructor Details

    • FileException

      public FileException(String aMessage, FileHandle aFileHandle, String aErrorCode)
      Parameters:
      aFileHandle - The file (handle) involved in this exception.
    • FileException

      public FileException(String aMessage, FileHandle aFileHandle, Throwable aCause, String aErrorCode)
      Parameters:
      aFileHandle - The file (handle) involved in this exception.
    • FileException

      public FileException(String aMessage, FileHandle aFileHandle, Throwable aCause)
      Parameters:
      aFileHandle - The file (handle) involved in this exception.
    • FileException

      public FileException(String aMessage, FileHandle aFileHandle)
      Parameters:
      aFileHandle - The file (handle) involved in this exception.
    • FileException

      public FileException(FileHandle aFileHandle, Throwable aCause, String aErrorCode)
      Parameters:
      aFileHandle - The file (handle) involved in this exception.
    • FileException

      public FileException(FileHandle aFileHandle, Throwable aCause)
      Parameters:
      aFileHandle - The file (handle) involved in this exception.
  • Method Details

    • getFileHandle

      public FileHandle getFileHandle()
      Retrieves the file handle from the file property.
      Specified by:
      getFileHandle in interface FileHandleAccessor
      Returns:
      The file handle stored by the file handle property.
    • getPatternArguments

      public Object[] getPatternArguments()
      Specified by:
      getPatternArguments in interface org.refcodes.exception.Trap