public class WrongArchiveKindException extends IllegalRequestException
IllegalRequestException.IllegalInputError
ClientException.ClientError
Constructor and Description |
---|
WrongArchiveKindException(ErrorType error,
Throwable cause)
This is the constructor used for serialization.
|
WrongArchiveKindException(String message,
ArchiveReferenceType archiveReference,
ArchiveContentEnum actualArchiveKind,
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.
|
Modifier and Type | Method and Description |
---|---|
WrongArchiveKindDetails |
getErrorDetails()
Returns the exception error details.
|
createError, getDescriptionParameters, getErrorCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public WrongArchiveKindException(ErrorType error, Throwable cause)
error
- the error modelcause
- the cause of the exceptionpublic WrongArchiveKindException(String message, ArchiveReferenceType archiveReference, ArchiveContentEnum actualArchiveKind, ArchiveContentEnum expectedArchiveKind)
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 typepublic WrongArchiveKindDetails getErrorDetails()
EcmRuntimeException
getErrorDetails
in class EcmRuntimeException
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.