Package eu.clarin.sru.client
Class SRUInvalidVersionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- eu.clarin.sru.client.SRUClientException
-
- eu.clarin.sru.client.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 Summary
Constructors Constructor Description SRUInvalidVersionException(String message, SRUVersion requestedVersion, SRUVersion detectedVersion)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SRUVersion
getDetectedVersion()
The SRU Version of the SRU Response.SRUVersion
getRequestedVersion()
The SRU Version of the SRU Request.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SRUInvalidVersionException
public SRUInvalidVersionException(String message, SRUVersion requestedVersion, SRUVersion detectedVersion)
Constructor- Parameters:
message
- an error messagerequestedVersion
- the SRU version used in the requestdetectedVersion
- 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
-
-