Class LogException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConnectionException, DriverLoadException, NullLocationException

@SupportedAll @Deprecated(since="8.0.0", forRemoval=true) public class LogException extends Exception
Deprecated, for removal: This API element is subject to removal in a future version.
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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log already exists.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log JDBC driver connection failed.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log creation privilege is denied.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log deletion privilege is denied.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log deletion error.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log SQL error / static public final int SQL_ERROR = 523; /** Other unknown fatal error.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log is in inactive state, preventing log submission.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log name is in valid.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Invalid session.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log listing privilege is denied.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log list does not exist.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log handler error.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    No such log exists.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    No such log segment exists.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log JDBC driver loading failed.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log JDBC null pointer.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log profile error.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log retrieval privilege is denied.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log Retrieval error.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log retrieval size (in bytes) exceeds the maximum allowed.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log type error.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log submition privilege is denied.
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Log submission error.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs a log exception.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs a log exception.
    LogException(String msg, int type)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructs a log exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns log exception type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • INVALID_SESSION

      public static final int INVALID_SESSION
      Deprecated, for removal: This API element is subject to removal in a future version.
      Invalid session.
      See Also:
    • ALREADY_EXISTS

      public static final int ALREADY_EXISTS
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log already exists.
      See Also:
    • INACTIVE

      public static final int INACTIVE
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log is in inactive state, preventing log submission.
      See Also:
    • LOG_HANDLER_ERROR

      public static final int LOG_HANDLER_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log handler error.
      See Also:
    • WRITE_ERROR

      public static final int WRITE_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log submission error.
      See Also:
    • READ_ERROR

      public static final int READ_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log Retrieval error.
      See Also:
    • DELETE_ERROR

      public static final int DELETE_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log deletion error.
      See Also:
    • LIST_NOT_EXISTS

      public static final int LIST_NOT_EXISTS
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log list does not exist.
      See Also:
    • TYPE_ERROR

      public static final int TYPE_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log type error.
      See Also:
    • CREATE_ACCESS_DENIED

      public static final int CREATE_ACCESS_DENIED
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log creation privilege is denied.
      See Also:
    • WRITE_ACCESS_DENIED

      public static final int WRITE_ACCESS_DENIED
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log submition privilege is denied.
      See Also:
    • READ_ACCESS_DENIED

      public static final int READ_ACCESS_DENIED
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log retrieval privilege is denied.
      See Also:
    • LIST_ACCESS_DENIED

      public static final int LIST_ACCESS_DENIED
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log listing privilege is denied.
      See Also:
    • PROFILE_ERROR

      public static final int PROFILE_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log profile error.
      See Also:
    • LOG_NOT_FOUND

      public static final int LOG_NOT_FOUND
      Deprecated, for removal: This API element is subject to removal in a future version.
      No such log exists.
      See Also:
    • NO_SUCH_SEGMENT_EXISTS

      public static final int NO_SUCH_SEGMENT_EXISTS
      Deprecated, for removal: This API element is subject to removal in a future version.
      No such log segment exists.
      See Also:
    • DELETE_ACCESS_DENIED

      public static final int DELETE_ACCESS_DENIED
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log deletion privilege is denied.
      See Also:
    • INVALID_LOG_NAME

      public static final int INVALID_LOG_NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log name is in valid.
      See Also:
    • READ_EXCEEDS_MAX

      public static final int READ_EXCEEDS_MAX
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log retrieval size (in bytes) exceeds the maximum allowed.
      See Also:
    • NULL_LOCATION

      public static final int NULL_LOCATION
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log JDBC driver loading failed. static public final int DRIVER_LOAD_FAILED = 519; /** Log JDBC driver null location.
      See Also:
    • CONNECTION_FALIED

      public static final int CONNECTION_FALIED
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log JDBC driver connection failed.
      See Also:
    • NULL_POINTER

      public static final int NULL_POINTER
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log JDBC null pointer.
      See Also:
    • FATAL_ERROR

      public static final int FATAL_ERROR
      Deprecated, for removal: This API element is subject to removal in a future version.
      Log SQL error / static public final int SQL_ERROR = 523; /** Other unknown fatal error.
      See Also:
  • Constructor Details

    • LogException

      public LogException()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs a log exception.
    • LogException

      public LogException(String msg)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs a log exception.
      Parameters:
      msg - Log exception message.
    • LogException

      public LogException(String msg, int type)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructs a log exception.
      Parameters:
      msg - Exception message.
      type - Log exception type.
  • Method Details

    • getType

      public int getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns log exception type.
      Returns:
      Log exception type.