Package com.saperion.exception
Class WrongDefinitionKindException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.saperion.exception.SaBasicException
com.saperion.exception.WrongDefinitionKindException
- All Implemented Interfaces:
- Serializable
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 SummaryConstructorsConstructorDescriptionWrongDefinitionKindException(String message, com.lexmark.saperion.archive.ArchiveReferenceType definition, DDC.DDCKind actualDefinitionKind, DDC.DDCKind expectedDefinitionKind) 
- 
Method SummaryModifier and TypeMethodDescriptionThis method returns the kind of definition that was encountered.com.lexmark.saperion.archive.ArchiveReferenceTypeThis method returns a reference to the definition that was used incorrectly.This method returns the kind of definition that was expected.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
WrongDefinitionKindExceptionpublic WrongDefinitionKindException(String message, com.lexmark.saperion.archive.ArchiveReferenceType definition, DDC.DDCKind actualDefinitionKind, DDC.DDCKind expectedDefinitionKind) 
 
- 
- 
Method Details- 
getArchiveReferencepublic 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
 
- 
getActualDefinitionKindThis method returns the kind of definition that was encountered.- Returns:
- the kind of definition that was encountered
 
- 
getExpectedDefinitionKindThis method returns the kind of definition that was expected.- Returns:
- the kind of definition that was expected
 
 
-