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:
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.
-
-
-
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
-
-