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 int
Bad arguments.static final int
Attempting to unlock a file that is not locked.static final int
Bad header.static final int
Out of Memory.static final int
Trying to access a device that is not available.static final int
Doing a read on a write-only device.static final int
Disk not ready.static final int
Invalid disk -- format.static final int
Unspecified IO error.static final int
Trying to read beyond the end of the file.static final int
Writing a record that is too large.static final String[]
Static ERROR codes text.static final int
Internal error.static final int
Invalid key length.static final int
Disk drive does not exist.static final int
Attempting to access a record in a DIRECT file using a key that does not exist.static final int
Error updating license.static final int
Non-BASIS license is already in usestatic final int
Invalid Integer.static final int
Connection to server has dropped.static final int
Network is gone.static final int
Network user error.static final int
Illegal file name.static final int
Attempting to access a file that cannot be found.static final int
Disk out of space.static final int
Not implemented.static final int
Too many network users.static final int
Corrupt file -- accessing location that does not exist.static final int
Data mismatch.static final int
Syntax Error.static final int
System memory overflow.static final int
General system error.static final int
Attempting to create a file in a full directory.static final int
Update conflict.static final int
User not allowed to access file.static final int
Disk 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 int
Accessor for the error code.static String
getErrorDesc
(int p_err) final String
Accessor for filename if availablefinal int
Accessor for the host err.final String
Methods 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
-