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 SummaryConstructors Constructor Description SRUInvalidVersionException(String message, SRUVersion requestedVersion, SRUVersion detectedVersion)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SRUVersiongetDetectedVersion()The SRU Version of the SRU Response.SRUVersiongetRequestedVersion()The SRU Version of the SRU Request.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
SRUInvalidVersionExceptionpublic 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- 
getRequestedVersionpublic SRUVersion getRequestedVersion() The SRU Version of the SRU Request.- Returns:
- the SRU version used in the SRU request or nullif unknown
 
 - 
getDetectedVersionpublic SRUVersion getDetectedVersion() The SRU Version of the SRU Response.- Returns:
- the SRU version found in the SRU response or nullif unable to parse/detect or otherwise
 
 
- 
 
-