com.ibm.mm.sdk.common

Class DKUsageError

  • All Implemented Interfaces:
    java.io.Serializable


    public class DKUsageError
    extends DKException
    Exception thrown for usage errors in the CM8 API.

    This exception is thrown when the CM8 API is used incorrectly, such as:

    • Passing null parameters where non-null values are required
    • Attempting operations on uninitialized objects
    • Providing invalid parameter values or combinations
    • Violating API contracts or preconditions

    DKUsageError extends DKException and represents client-side errors that should be corrected by the calling code. These errors typically indicate programming mistakes rather than runtime failures.

    See Also:
    DKException, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      DKUsageError(java.lang.String message)
      Constructs a new usage error with the specified detail message.
      DKUsageError(java.lang.String message, java.lang.Throwable cause)
      Constructs a new usage error 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

      • DKUsageError

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

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

Copyright © 2024 IBM Corporation. All rights reserved.