com.ibm.mm.sdk.logtool

Class DKLogException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.ibm.mm.sdk.logtool.DKLogException
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DKException


    public class DKLogException
    extends java.lang.Exception
    Exception class for logging-related errors in the CM8 SDK.

    This exception is thrown when errors occur during logging operations, such as log file initialization failures, write errors, or configuration problems.

    Common Use Cases:

    • Log file creation or access failures
    • Log configuration errors
    • Log handler initialization problems
    • Log formatting errors

    Usage Example:

     try {
         // Logging operation
     } catch (IOException e) {
         throw new DKLogException("Failed to write to log file", e);
     }
     
    See Also:
    Exception, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      DKLogException(java.lang.String message)
      Constructs a new DKLogException with the specified detail message.
      DKLogException(java.lang.String message, java.lang.Throwable cause)
      Constructs a new DKLogException with the specified detail message and cause.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DKLogException

        public DKLogException(java.lang.String message)
        Constructs a new DKLogException with the specified detail message.
        Parameters:
        message - the detail message explaining the logging error
      • DKLogException

        public DKLogException(java.lang.String message,
                              java.lang.Throwable cause)
        Constructs a new DKLogException with the specified detail message and cause.
        Parameters:
        message - the detail message explaining the logging error
        cause - the underlying cause of the logging error
Copyright © 2024 IBM Corporation

Copyright © 2024 IBM Corporation. All rights reserved.