FileDocCategorySizeDatePackage
LogException.javaAPI DocGlassfish v2 API7619Fri May 04 22:36:38 BST 2007com.sun.jts.CosTransactions

LogException

public class LogException extends Throwable
A class which contains exception information for errors in the log.
version
0.01
author
Simon Holdsworth, IBM Corporation
see

Fields Summary
static final int
LOG_SUCCESS
Constants which define error codes from the logger classes.
static final int
LOG_NOT_INITIALISED
static final int
LOG_OPEN_FAILURE
static final int
LOG_READ_FAILURE
static final int
LOG_CORRUPTED
static final int
LOG_INVALID_FILE_DESCRIPTOR
static final int
LOG_LOCK_FAILURE
static final int
LOG_WRITE_FAILURE
static final int
LOG_CLOSE_FAILURE
static final int
LOG_TOO_MANY_INPUT_BUFFERS
static final int
LOG_RECORD_TOO_LARGE
static final int
LOG_NO_SPACE
static final int
LOG_INSUFFICIENT_MEMORY
static final int
LOG_ERROR_FORCING_LOG
static final int
LOG_INVALID_LSN
static final int
LOG_NEW_TAIL_TOO_HIGH
static final int
LOG_NEW_TAIL_TOO_LOW
static final int
LOG_INVALID_TAIL
static final int
LOG_INTERNAL_ERROR
static final int
LOG_NO_RESTART_RECORD
static final int
LOG_INVALID_CURSOR
static final int
LOG_END_OF_CURSOR
static final int
LOG_ACCESS_FAILURE
static final int
LOG_INVALID_PROCESS
static final int
LOG_INVALID_RECORDTYPE
static final int
LOG_INVALID_WRITEMODE
static final int
LOG_OPEN_EXTENT_FAILURE
static final int
LOG_READ_ONLY_ACCESS
static final int
MAX_RESPONSE_VALUE
private static final String[]
statusStrings
Strings which contain error messages from the log.
int
errorCode
Instance members
private int
throwPoint
private Object
extraInfo
Constructors Summary
LogException(Object dummy, int err, int point)
LogException constructor

param
trc The current trace object to allow exception trace to be made.
param
err The error code.
param
point The throw point.
return
see


                                       
      /* COMMENT(Ram J) - used to be trace object */
                     
                       
        super(new String("Log exception at point "+point+":\n"+
                         statusStrings[err>MAX_RESPONSE_VALUE?MAX_RESPONSE_VALUE+1:err]/*#Frozen*/));
        errorCode = err;
        throwPoint = point;
    
LogException(Object dummy, int err, int point, Object extra)
LogException constructor

param
trc The current trace object to allow exception trace to be made.
param
err The error code.
param
point The throw point.
param
extra Extra information.
return
see

        super(new String("Log exception at point "+point+":\n"+
                         statusStrings[err>MAX_RESPONSE_VALUE?MAX_RESPONSE_VALUE+1:err]/*#Frozen*/));
        errorCode = err;
        throwPoint = point;
        extraInfo = extra;
    
Methods Summary