Class 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
    • 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

      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
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 model
        cause - 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 detail
        archiveReference - a reference to teh archive whose type is not as expected
        actualArchiveKind - the actual archive type
        expectedArchiveKind - the expected archive type
    • Method Detail

      • getErrorDetails

        public WrongArchiveKindDetails getErrorDetails()
        Overrides:
        getErrorDetails in class com.lexmark.saperion.exceptions.EcmRuntimeException