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

    Constructors
    Constructor
    Description
    WrongArchiveKindException(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

    Modifier and Type
    Method
    Description
     

    Methods inherited from class com.lexmark.saperion.exceptions.EcmRuntimeException

    createError, getDescriptionParameters, getErrorCode

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WrongArchiveKindException

      public WrongArchiveKindException(com.lexmark.saperion.exceptions.ErrorType error, Throwable cause)
      This is the constructor used for serialization.
      Parameters:
      error - the error model
      cause - 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 detail
      archiveReference - a reference to teh archive whose type is not as expected
      actualArchiveKind - the actual archive type
      expectedArchiveKind - the expected archive type
  • Method Details

    • getErrorDetails

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