com.iplanet.log
Class LogException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.iplanet.log.LogException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConnectionException, DriverLoadException, InvalidLogNameException, LogAlreadyExistException, LogCreateException, LogDeleteException, LogFatalException, LogHandlerException, LogInactiveException, LogInvalidSessionException, LogNotFoundException, LogPrivDeniedException, LogProfileException, LogReadExceedsMaxException, LogReadException, LogTypeException, LogWriteException, NullLocationException

public class LogException
extends java.lang.Exception

The applications may encounter errors when they are denied for a log access because they don't have the access privileges or when they do not have a valid session. The applications may also encounter errors when the logging server is not able response to the applications' request or for some other reasons. This LogException class provides the method for detecting such errors.

See Also:
Serialized Form

Field Summary
static int ALREADY_EXISTS
          log already exists
static int CONNECTION_FALIED
          log jdbc driver connection failed
static int CREATE_ACCESS_DENIED
          log creation privilege is denied
static int DELETE_ACCESS_DENIED
          log deletion privilege is denied
static int DELETE_ERROR
          log deletion error
static int DRIVER_LOAD_FAILED
          log jdbc driver loading failed
static int FATAL_ERROR
          other unkown fatal error
static int INACTIVE
          log is in inactive state, preventing log submission
static int INVALID_LOG_NAME
          log name is in valid
static int INVALID_SESSION
          invalid session
static int LIST_ACCESS_DENIED
          log listing privilege is denied
static int LIST_NOT_EXISTS
          log list does not exist
static int LOG_HANDLER_ERROR
          log handler error
static int LOG_NOT_FOUND
          no such log exists
static int NO_SUCH_SEGMENT_EXISTS
          no such log segment exists
static int NULL_LOCATION
          log jdbc driver null location
static int NULL_POINTER
          log jdbc null pointer
static int PROFILE_ERROR
          log profile error
static int READ_ACCESS_DENIED
          log retrieval privilege is denied
static int READ_ERROR
          log Retrieval error
static int READ_EXCEEDS_MAX
          log retrieval size (in bytes) exceeds the maximum allowed
static int SQL_ERROR
          log SQL error
static int TYPE_ERROR
          log type error
static int WRITE_ACCESS_DENIED
          log submition privilege is denied
static int WRITE_ERROR
          log submission error
 
Constructor Summary
LogException()
          Create a log exception.
LogException(java.lang.String msg)
          Create a log exception.
LogException(java.lang.String msg, int type)
          Create a log exception.
 
Method Summary
 int getType()
          Get log exception type.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_SESSION

public static final int INVALID_SESSION
invalid session

ALREADY_EXISTS

public static final int ALREADY_EXISTS
log already exists

INACTIVE

public static final int INACTIVE
log is in inactive state, preventing log submission

LOG_HANDLER_ERROR

public static final int LOG_HANDLER_ERROR
log handler error

WRITE_ERROR

public static final int WRITE_ERROR
log submission error

READ_ERROR

public static final int READ_ERROR
log Retrieval error

DELETE_ERROR

public static final int DELETE_ERROR
log deletion error

LIST_NOT_EXISTS

public static final int LIST_NOT_EXISTS
log list does not exist

TYPE_ERROR

public static final int TYPE_ERROR
log type error

CREATE_ACCESS_DENIED

public static final int CREATE_ACCESS_DENIED
log creation privilege is denied

WRITE_ACCESS_DENIED

public static final int WRITE_ACCESS_DENIED
log submition privilege is denied

READ_ACCESS_DENIED

public static final int READ_ACCESS_DENIED
log retrieval privilege is denied

LIST_ACCESS_DENIED

public static final int LIST_ACCESS_DENIED
log listing privilege is denied

PROFILE_ERROR

public static final int PROFILE_ERROR
log profile error

LOG_NOT_FOUND

public static final int LOG_NOT_FOUND
no such log exists

NO_SUCH_SEGMENT_EXISTS

public static final int NO_SUCH_SEGMENT_EXISTS
no such log segment exists

DELETE_ACCESS_DENIED

public static final int DELETE_ACCESS_DENIED
log deletion privilege is denied

INVALID_LOG_NAME

public static final int INVALID_LOG_NAME
log name is in valid

READ_EXCEEDS_MAX

public static final int READ_EXCEEDS_MAX
log retrieval size (in bytes) exceeds the maximum allowed

DRIVER_LOAD_FAILED

public static final int DRIVER_LOAD_FAILED
log jdbc driver loading failed

NULL_LOCATION

public static final int NULL_LOCATION
log jdbc driver null location

CONNECTION_FALIED

public static final int CONNECTION_FALIED
log jdbc driver connection failed

NULL_POINTER

public static final int NULL_POINTER
log jdbc null pointer

SQL_ERROR

public static final int SQL_ERROR
log SQL error

FATAL_ERROR

public static final int FATAL_ERROR
other unkown fatal error
Constructor Detail

LogException

public LogException()
Create a log exception.

LogException

public LogException(java.lang.String msg)
Create a log exception.
Parameters:
msg - Log exception message.

LogException

public LogException(java.lang.String msg,
                    int type)
Create a log exception.
Parameters:
msg - Exception message.
type - Log exception type.
Method Detail

getType

public int getType()
Get log exception type.
Returns:
Log exception type