Package com.basis.filesystem
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
Exception base class for the Filesystem. All filesystem exceptions inherit
from this class.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBad arguments.static final intAttempting to unlock a file that is not locked.static final intBad header.static final intOut of Memory.static final intTrying to access a device that is not available.static final intDoing a read on a write-only device.static final intDisk not ready.static final intInvalid disk -- format.static final intUnspecified IO error.static final intTrying to read beyond the end of the file.static final intWriting a record that is too large.static final String[]Static ERROR codes text.static final intInternal error.static final intInvalid key length.static final intDisk drive does not exist.static final intAttempting to access a record in a DIRECT file using a key that does not exist.static final intError updating license.static final intNon-BASIS license is already in usestatic final intInvalid Integer.static final intConnection to server has dropped.static final intNetwork is gone.static final intNetwork user error.static final intIllegal file name.static final intAttempting to access a file that cannot be found.static final intDisk out of space.static final intNot implemented.static final intToo many network users.static final intCorrupt file -- accessing location that does not exist.static final intData mismatch.static final intSyntax Error.static final intSystem memory overflow.static final intGeneral system error.static final intAttempting to create a file in a full directory.static final intUpdate conflict.static final intUser not allowed to access file.static final intDisk data transfer failed. -
Constructor Summary
ConstructorsConstructorDescriptionFilesystemException(int p_errorCode) FilesystemException(int p_errorCode, int p_hostErr) FilesystemException(int p_errorCode, int p_hostErr, String p_string) FilesystemException(int p_errorCode, int p_hostErr, String p_string, Throwable p_cause) FilesystemException(int p_errorCode, int p_hostErr, Throwable p_cause) FilesystemException(int p_errorCode, String p_string) FilesystemException(int p_errorCode, String p_string, Throwable p_cause) FilesystemException(int p_errorCode, Throwable p_cause) FilesystemException(String p_filename, int p_errorCode) Constructor just taking an error code.FilesystemException(String p_filename, int p_errorCode, int p_hostErr) Constructor just taking an error code and host err.FilesystemException(String p_filename, int p_errorCode, int p_hostErr, String p_string) Constructor taking an error code and message string.FilesystemException(String p_filename, int p_errorCode, int p_hostErr, String p_string, Throwable p_cause) Constructor taking an error code and message string.FilesystemException(String p_filename, int p_errorCode, int p_hostErr, Throwable p_cause) Constructor just taking an error code and host err.FilesystemException(String p_filename, int p_errorCode, String p_string) Constructor taking an error code and message string.FilesystemException(String p_filename, int p_errorCode, String p_string, Throwable p_cause) Constructor taking an error code and message string.FilesystemException(String p_filename, int p_errorCode, Throwable p_cause) Constructor taking an error code and Throwable. -
Method Summary
Modifier and TypeMethodDescriptioncloneWithNewFilename(String p_filename) final intAccessor for the error code.static StringgetErrorDesc(int p_err) final StringAccessor for filename if availablefinal intAccessor for the host err.final StringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_DESC
Static ERROR codes text. -
BUSY
public static final int BUSYTrying 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 EORWriting a record that is too large. Reading more fields than are available.- See Also:
-
EOF
public static final int EOFTrying 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 DREADUnspecified IO error.- See Also:
-
DFAIL
public static final int DFAILDisk not ready.- See Also:
-
DISK
public static final int DISKInvalid disk -- format.- See Also:
-
PNTR
public static final int PNTRCorrupt file -- accessing location that does not exist.- See Also:
-
VERIF
public static final int VERIFDisk data transfer failed.- See Also:
-
PWFAIL
public static final int PWFAILData mismatch.- See Also:
-
NLEN
public static final int NLENIllegal file name.- See Also:
-
KFAIL
public static final int KFAILAttempting 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 NOFAttempting 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 CANTDoing 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 BADCIBAttempting 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 NOROOMDisk out of space.- See Also:
-
TOFLOW
public static final int TOFLOWAttempting to create a file in a full directory. Opening too many files.- See Also:
-
INVPARM
public static final int INVPARMDisk 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 USERCANTUser not allowed to access file.- See Also:
-
SYNTAXERR
public static final int SYNTAXERRSyntax Error. Invalid syntax.- See Also:
-
BADARG
public static final int BADARGBad arguments.- See Also:
-
BUFFER_TOO_SMALL
public static final int BUFFER_TOO_SMALLOut of Memory.- See Also:
-
SYSTEM_MEMORY_OVERFLOW
public static final int SYSTEM_MEMORY_OVERFLOWSystem memory overflow.- See Also:
-
MATHERR
public static final int MATHERRInvalid Integer. Integer is out of legal range.- See Also:
-
INVKEYLEN
public static final int INVKEYLENInvalid key length.- See Also:
-
BADHEAD
public static final int BADHEADBad header.- See Also:
-
SYSTEMERR
public static final int SYSTEMERRGeneral system error.- See Also:
-
NOUSERS
public static final int NOUSERSToo many network users.- See Also:
-
NETUSER
public static final int NETUSERNetwork user error.- See Also:
-
NETERR
public static final int NETERRConnection to server has dropped.- See Also:
-
NETGONE
public static final int NETGONENetwork is gone.- See Also:
-
UPDATE_CONFLICT
public static final int UPDATE_CONFLICTUpdate conflict.- See Also:
-
LIC_ERROR
public static final int LIC_ERRORError updating license.- See Also:
-
LICINUSE
public static final int LICINUSENon-BASIS license is already in use- See Also:
-
NOTIMP
public static final int NOTIMPNot implemented.- See Also:
-
INTERNAL
public static final int INTERNALInternal error.- See Also:
-
-
Constructor Details
-
FilesystemException
public FilesystemException(int p_errorCode) -
FilesystemException
Constructor just taking an error code.- Parameters:
p_filename-p_errorCode- Error code.
-
FilesystemException
public FilesystemException(int p_errorCode, int p_hostErr) -
FilesystemException
Constructor just taking an error code and host err.- Parameters:
p_filename-p_errorCode- Error code.p_hostErr- Host error code.
-
FilesystemException
-
FilesystemException
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
-
FilesystemException
Constructor taking an error code and Throwable.- Parameters:
p_filename-p_errorCode- Error code.p_cause- Cause of the FilesystemException.
-
FilesystemException
-
FilesystemException
Constructor taking an error code and message string.- Parameters:
p_filename-p_errorCode- Error code.p_string- Message for clarification.
-
FilesystemException
-
FilesystemException
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
-
FilesystemException
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
-
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
-
cloneWithNewFilename
-
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
-
getFilename
Accessor for filename if available
-