Package eu.clarin.sru.server
Class SRUException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- eu.clarin.sru.server.SRUException
-
- All Implemented Interfaces:
Serializable
public class SRUException extends Exception
An exception raised, if something went wrong processing the request. For diagnostic codes, see constants inSRUConstants
.- See Also:
SRUConstants
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SRUException(String uri)
Constructor.SRUException(String uri, String message)
Constructor.SRUException(String uri, String details, String message)
Constructor.SRUException(String uri, String details, String message, Throwable cause)
Constructor.SRUException(String uri, String message, Throwable cause)
Constructor.SRUException(String uri, Throwable cause)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SRUDiagnostic
getDiagnostic()
Create a SRU diagnostic from this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SRUException
public SRUException(String uri, String details, String message, Throwable cause)
Constructor.- Parameters:
uri
- the diagnostic's identifying URIdetails
- diagnostic details ornull
message
- diagnostic message ornull
cause
- the cause of the error ornull
-
SRUException
public SRUException(String uri, String details, String message)
Constructor.- Parameters:
uri
- the diagnostic's identifying URIdetails
- diagnostic details ornull
message
- diagnostic message ornull
-
SRUException
public SRUException(String uri, String message, Throwable cause)
Constructor.- Parameters:
uri
- the diagnostic's identifying URImessage
- diagnostic message ornull
cause
- the cause of the error ornull
-
SRUException
public SRUException(String uri, String message)
Constructor.- Parameters:
uri
- the diagnostic's identifying URImessage
- diagnostic message ornull
-
SRUException
public SRUException(String uri, Throwable cause)
Constructor.- Parameters:
uri
- the diagnostic's identifying URIcause
- the cause of the error ornull
-
SRUException
public SRUException(String uri)
Constructor.- Parameters:
uri
- the diagnostic's identifying URI
-
-
Method Detail
-
getDiagnostic
public SRUDiagnostic getDiagnostic()
Create a SRU diagnostic from this exception.- Returns:
- a
SRUDiagnostic
instance
-
-