Class WrongDefinitionKindException

All Implemented Interfaces:
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:
  • Constructor Details

    • WrongDefinitionKindException

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

    • 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