Class FilesystemException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.basis.filesystem.FilesystemException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FilesystemEOFException, FilesystemExtractConflictException, FilesystemIOException, FilesystemKeyException, FilesystemNotYetImplementedException

public class FilesystemException extends Exception
Exception base class for the Filesystem. All filesystem exceptions inherit from this class.
See Also:
  • Field Details

    • ERROR_DESC

      public static final String[] ERROR_DESC
      Static ERROR codes text.
    • BUSY

      public static final int BUSY
      Trying to access a device that is not available. Trying to access a record that is extracted. Trying to access a file that is locked. Trying to lock a file that is locked.
      See Also:
    • EOR

      public static final int EOR
      Writing a record that is too large. Reading more fields than are available.
      See Also:
    • EOF

      public static final int EOF
      Trying to read beyond the end of the file. Using KEY, KEYN, or IND when the last record has been read. Using KEYP when on the first record. Adding a new key to a full file.
      See Also:
    • DREAD

      public static final int DREAD
      Unspecified IO error.
      See Also:
    • DFAIL

      public static final int DFAIL
      Disk not ready.
      See Also:
    • DISK

      public static final int DISK
      Invalid disk -- format.
      See Also:
    • PNTR

      public static final int PNTR
      Corrupt file -- accessing location that does not exist.
      See Also:
    • VERIF

      public static final int VERIF
      Disk data transfer failed.
      See Also:
    • PWFAIL

      public static final int PWFAIL
      Data mismatch.
      See Also:
    • NLEN

      public static final int NLEN
      Illegal file name.
      See Also:
    • KFAIL

      public static final int KFAIL
      Attempting to access a record in a DIRECT file using a key that does not exist. Writing a record using a key which already exists if DOM= is used.
      See Also:
    • NOF

      public static final int NOF
      Attempting to access a file that cannot be found. Attempting to create a file with a name that already exists. Cannot locate dataserver.
      See Also:
    • CANT

      public static final int CANT
      Doing a read on a write-only device. Doing a write on a read-only file. Doing a write on a SERIAL file before locking it. Attempting to access keys in a non-keyed file.
      See Also:
    • BADCIB

      public static final int BADCIB
      Attempting to unlock a file that is not locked. Locking a file that is already opened by another user. Locking a file that is already locked by the same user. Erasing a file that the user does not own.
      See Also:
    • NOROOM

      public static final int NOROOM
      Disk out of space.
      See Also:
    • TOFLOW

      public static final int TOFLOW
      Attempting to create a file in a full directory. Opening too many files.
      See Also:
    • INVPARM

      public static final int INVPARM
      Disk drive does not exist. Invalid MKEYED key description. KNUM= trying to select a key that is not defined.
      See Also:
    • USERCANT

      public static final int USERCANT
      User not allowed to access file.
      See Also:
    • SYNTAXERR

      public static final int SYNTAXERR
      Syntax Error. Invalid syntax.
      See Also:
    • BADARG

      public static final int BADARG
      Bad arguments.
      See Also:
    • BUFFER_TOO_SMALL

      public static final int BUFFER_TOO_SMALL
      Out of Memory.
      See Also:
    • SYSTEM_MEMORY_OVERFLOW

      public static final int SYSTEM_MEMORY_OVERFLOW
      System memory overflow.
      See Also:
    • MATHERR

      public static final int MATHERR
      Invalid Integer. Integer is out of legal range.
      See Also:
    • INVKEYLEN

      public static final int INVKEYLEN
      Invalid key length.
      See Also:
    • BADHEAD

      public static final int BADHEAD
      Bad header.
      See Also:
    • SYSTEMERR

      public static final int SYSTEMERR
      General system error.
      See Also:
    • NOUSERS

      public static final int NOUSERS
      Too many network users.
      See Also:
    • NETUSER

      public static final int NETUSER
      Network user error.
      See Also:
    • NETERR

      public static final int NETERR
      Connection to server has dropped.
      See Also:
    • NETGONE

      public static final int NETGONE
      Network is gone.
      See Also:
    • UPDATE_CONFLICT

      public static final int UPDATE_CONFLICT
      Update conflict.
      See Also:
    • LIC_ERROR

      public static final int LIC_ERROR
      Error updating license.
      See Also:
    • LICINUSE

      public static final int LICINUSE
      Non-BASIS license is already in use
      See Also:
    • NOTIMP

      public static final int NOTIMP
      Not implemented.
      See Also:
    • INTERNAL

      public static final int INTERNAL
      Internal error.
      See Also:
  • Constructor Details

    • FilesystemException

      public FilesystemException(int p_errorCode)
    • FilesystemException

      public FilesystemException(String p_filename, int p_errorCode)
      Constructor just taking an error code.
      Parameters:
      p_filename -
      p_errorCode - Error code.
    • FilesystemException

      public FilesystemException(int p_errorCode, int p_hostErr)
    • FilesystemException

      public FilesystemException(String p_filename, int p_errorCode, int p_hostErr)
      Constructor just taking an error code and host err.
      Parameters:
      p_filename -
      p_errorCode - Error code.
      p_hostErr - Host error code.
    • FilesystemException

      public FilesystemException(int p_errorCode, int p_hostErr, Throwable p_cause)
    • FilesystemException

      public FilesystemException(String p_filename, int p_errorCode, int p_hostErr, Throwable p_cause)
      Constructor just taking an error code and host err.
      Parameters:
      p_filename -
      p_errorCode - Error code.
      p_hostErr - Host error code.
      p_cause - Cause of the FilesystemException.
    • FilesystemException

      public FilesystemException(int p_errorCode, Throwable p_cause)
    • FilesystemException

      public FilesystemException(String p_filename, int p_errorCode, Throwable p_cause)
      Constructor taking an error code and Throwable.
      Parameters:
      p_filename -
      p_errorCode - Error code.
      p_cause - Cause of the FilesystemException.
    • FilesystemException

      public FilesystemException(int p_errorCode, String p_string)
    • FilesystemException

      public FilesystemException(String p_filename, int p_errorCode, String p_string)
      Constructor taking an error code and message string.
      Parameters:
      p_filename -
      p_errorCode - Error code.
      p_string - Message for clarification.
    • FilesystemException

      public FilesystemException(int p_errorCode, String p_string, Throwable p_cause)
    • FilesystemException

      public FilesystemException(String p_filename, int p_errorCode, String p_string, Throwable p_cause)
      Constructor taking an error code and message string.
      Parameters:
      p_filename -
      p_errorCode - Error code.
      p_string - Message for clarification.
      p_cause - Cause of the FilesystemException.
    • FilesystemException

      public FilesystemException(int p_errorCode, int p_hostErr, String p_string)
    • FilesystemException

      public FilesystemException(String p_filename, int p_errorCode, int p_hostErr, String p_string)
      Constructor taking an error code and message string.
      Parameters:
      p_filename -
      p_errorCode - Error code.
      p_hostErr - Host error code.
      p_string - Message for clarification.
    • FilesystemException

      public FilesystemException(int p_errorCode, int p_hostErr, String p_string, Throwable p_cause)
    • FilesystemException

      public FilesystemException(String p_filename, int p_errorCode, int p_hostErr, String p_string, Throwable p_cause)
      Constructor taking an error code and message string.
      Parameters:
      p_filename -
      p_errorCode - Error code.
      p_hostErr - Host error code.
      p_string - Message for clarification.
      p_cause - Cause of the FilesystemException.
  • Method Details

    • getErrorDesc

      public static String getErrorDesc(int p_err)
    • cloneWithNewFilename

      public FilesystemException cloneWithNewFilename(String p_filename)
    • getErrorCode

      public final int getErrorCode()
      Accessor for the error code.
      Returns:
      Error code.
    • getHostErr

      public final int getHostErr()
      Accessor for the host err.
      Returns:
      Host error code.
    • getString

      public final String getString()
    • getFilename

      public final String getFilename()
      Accessor for filename if available