com.ibm.as400.access

Class IllegalObjectTypeException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.ibm.as400.access.IllegalObjectTypeException
  • All Implemented Interfaces:
    ReturnCodeException, java.io.Serializable


    public class IllegalObjectTypeException
    extends java.lang.Exception
    implements ReturnCodeException
    The IllegalObjectTypeException class represents an exception that indicates that the IBM i system object is not the required type.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int DATA_AREA_CHARACTER
      The return code indicating that an attempt was made to use a character data area with a non-character data area object.
      static int DATA_AREA_DECIMAL
      The return code indicating that an attempt was made to use a decimal data area with a non-decimal data area object.
      static int DATA_AREA_LOGICAL
      The return code indicating that an attempt was made to use a logical data area with a non-logical data area object.
      static int DATA_QUEUE_KEYED
      The return code indicating that an attempt was made to use a keyed queue with a non-keyed data queue object.
      static int DATA_QUEUE_NOT_KEYED
      The return code indicating that an attempt was made to use a non-keyed data queue with a keyed data queue object.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getReturnCode()
      Returns the return code associated with this exception.
      • Methods inherited from class java.lang.Throwable

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

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

      • DATA_QUEUE_KEYED

        public static final int DATA_QUEUE_KEYED
        The return code indicating that an attempt was made to use a keyed queue with a non-keyed data queue object.
        See Also:
        Constant Field Values
      • DATA_QUEUE_NOT_KEYED

        public static final int DATA_QUEUE_NOT_KEYED
        The return code indicating that an attempt was made to use a non-keyed data queue with a keyed data queue object.
        See Also:
        Constant Field Values
      • DATA_AREA_CHARACTER

        public static final int DATA_AREA_CHARACTER
        The return code indicating that an attempt was made to use a character data area with a non-character data area object.
        See Also:
        Constant Field Values
      • DATA_AREA_DECIMAL

        public static final int DATA_AREA_DECIMAL
        The return code indicating that an attempt was made to use a decimal data area with a non-decimal data area object.
        See Also:
        Constant Field Values
      • DATA_AREA_LOGICAL

        public static final int DATA_AREA_LOGICAL
        The return code indicating that an attempt was made to use a logical data area with a non-logical data area object.
        See Also:
        Constant Field Values
    • Method Detail

      • getReturnCode

        public int getReturnCode()
        Returns the return code associated with this exception.
        Specified by:
        getReturnCode in interface ReturnCodeException
        Returns:
        The return code.