Class WrongDefinitionKindException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WrongDefinitionKindException
    extends SaBasicException
    This exception indicates that the type of a document definition does not work the way it is used. For example it was tried to read the content of a lookup entry.
    Author:
    jschwarz
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WrongDefinitionKindException​(java.lang.String message, com.lexmark.saperion.archive.ArchiveReferenceType definition, DDC.DDCKind actualDefinitionKind, DDC.DDCKind expectedDefinitionKind)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DDC.DDCKind getActualDefinitionKind()
      This method returns the kind of definition that was encountered.
      com.lexmark.saperion.archive.ArchiveReferenceType getArchiveReference()
      This method returns a reference to the definition that was used incorrectly.
      DDC.DDCKind getExpectedDefinitionKind()
      This method returns the kind of definition that was expected.
      • 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

      • WrongDefinitionKindException

        public WrongDefinitionKindException​(java.lang.String message,
                                            com.lexmark.saperion.archive.ArchiveReferenceType definition,
                                            DDC.DDCKind actualDefinitionKind,
                                            DDC.DDCKind expectedDefinitionKind)
    • Method Detail

      • getArchiveReference

        public com.lexmark.saperion.archive.ArchiveReferenceType getArchiveReference()
        This method returns a reference to the definition that was used incorrectly.
        Returns:
        a reference to the archive that was used incorrectly
      • getActualDefinitionKind

        public DDC.DDCKind getActualDefinitionKind()
        This method returns the kind of definition that was encountered.
        Returns:
        the kind of definition that was encountered
      • getExpectedDefinitionKind

        public DDC.DDCKind getExpectedDefinitionKind()
        This method returns the kind of definition that was expected.
        Returns:
        the kind of definition that was expected