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:
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.lexmark.saperion.exceptions.runtime.IllegalRequestException
com.lexmark.saperion.exceptions.runtime.IllegalRequestException.IllegalInputError
Nested classes/interfaces inherited from class com.lexmark.saperion.exceptions.runtime.ClientException
com.lexmark.saperion.exceptions.runtime.ClientException.ClientError
-
Field Summary
Fields inherited from class com.lexmark.saperion.exceptions.runtime.IllegalRequestException
CLIENT_ILLEGAL_INPUT_ERROR
Fields inherited from class com.lexmark.saperion.exceptions.runtime.ClientException
CLIENT_GENERAL_ERROR
-
Constructor Summary
ConstructorsConstructorDescriptionWrongArchiveKindException
(com.lexmark.saperion.exceptions.ErrorType error, Throwable cause) This is the constructor used for serialization.WrongArchiveKindException
(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
Methods inherited from class com.lexmark.saperion.exceptions.EcmRuntimeException
createError, getDescriptionParameters, getErrorCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WrongArchiveKindException
This is the constructor used for serialization.- Parameters:
error
- the error modelcause
- the cause of the exception
-
WrongArchiveKindException
public WrongArchiveKindException(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 Details
-
getErrorDetails
- Overrides:
getErrorDetails
in classcom.lexmark.saperion.exceptions.EcmRuntimeException
-