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 Summary
ConstructorsConstructorDescriptionWrongDefinitionKindException
(String message, com.lexmark.saperion.archive.ArchiveReferenceType definition, DDC.DDCKind actualDefinitionKind, DDC.DDCKind expectedDefinitionKind) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the kind of definition that was encountered.com.lexmark.saperion.archive.ArchiveReferenceType
This 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.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
This method returns the kind of definition that was encountered.- Returns:
- the kind of definition that was encountered
-
getExpectedDefinitionKind
This method returns the kind of definition that was expected.- Returns:
- the kind of definition that was expected
-