Class WrongArchiveKindException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.lexmark.saperion.exceptions.EcmRuntimeException
-
- com.lexmark.saperion.exceptions.runtime.ClientException
-
- com.lexmark.saperion.exceptions.runtime.IllegalRequestException
-
- com.lexmark.saperion.exceptions.runtime.WrongArchiveKindException
-
- All Implemented Interfaces:
java.io.Serializable
public class WrongArchiveKindException extends com.lexmark.saperion.exceptions.runtime.IllegalRequestException
This exception indicates that a request to an archive was made that the archive type does not support.- Author:
- jschwarz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrongArchiveKindException(com.lexmark.saperion.exceptions.ErrorType error, java.lang.Throwable cause)
This is the constructor used for serialization.WrongArchiveKindException(java.lang.String message, com.lexmark.saperion.archive.ArchiveReferenceType archiveReference, com.lexmark.saperion.archive.ArchiveContentEnum actualArchiveKind, com.lexmark.saperion.archive.ArchiveContentEnum expectedArchiveKind)
This constructor creates a new exception for the case that the given archive reference was expected to reference an archive of the given expected archive type but was instead referencing an archive of the given encountered archive type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WrongArchiveKindDetails
getErrorDetails()
-
Methods inherited from class com.lexmark.saperion.exceptions.EcmRuntimeException
createError, getDescriptionParameters, getErrorCode
-
-
-
-
Constructor Detail
-
WrongArchiveKindException
public WrongArchiveKindException(com.lexmark.saperion.exceptions.ErrorType error, java.lang.Throwable cause)
This is the constructor used for serialization.- Parameters:
error
- the error modelcause
- the cause of the exception
-
WrongArchiveKindException
public WrongArchiveKindException(java.lang.String message, com.lexmark.saperion.archive.ArchiveReferenceType archiveReference, com.lexmark.saperion.archive.ArchiveContentEnum actualArchiveKind, com.lexmark.saperion.archive.ArchiveContentEnum expectedArchiveKind)
This constructor creates a new exception for the case that the given archive reference was expected to reference an archive of the given expected archive type but was instead referencing an archive of the given encountered archive type.- Parameters:
message
- a message for a little more detailarchiveReference
- a reference to teh archive whose type is not as expectedactualArchiveKind
- the actual archive typeexpectedArchiveKind
- the expected archive type
-
-
Method Detail
-
getErrorDetails
public WrongArchiveKindDetails getErrorDetails()
- Overrides:
getErrorDetails
in classcom.lexmark.saperion.exceptions.EcmRuntimeException
-
-