Class SRUInvalidVersionException

  • All Implemented Interfaces:
    Serializable

    public class SRUInvalidVersionException
    extends SRUClientException
    SRU client exception raised when SRU responses show versions not corresponding the SRU requests.
    See Also:
    Serialized Form
    • Constructor Detail

      • SRUInvalidVersionException

        public SRUInvalidVersionException​(String message,
                                          SRUVersion requestedVersion,
                                          SRUVersion detectedVersion)
        Constructor
        Parameters:
        message - an error message
        requestedVersion - the SRU version used in the request
        detectedVersion - the SRU version found in the response
    • Method Detail

      • getRequestedVersion

        public SRUVersion getRequestedVersion()
        The SRU Version of the SRU Request.
        Returns:
        the SRU version used in the SRU request or null if unknown
      • getDetectedVersion

        public SRUVersion getDetectedVersion()
        The SRU Version of the SRU Response.
        Returns:
        the SRU version found in the SRU response or null if unable to parse/detect or otherwise