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 SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SRUDiagnosticgetDiagnostic()Create a SRU diagnostic from this exception.- 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
SRUExceptionpublic SRUException(String uri, String details, String message, Throwable cause) Constructor.- Parameters:
- uri- the diagnostic's identifying URI
- details- diagnostic details or- null
- message- diagnostic message or- null
- cause- the cause of the error or- null
 
 - 
SRUExceptionpublic SRUException(String uri, String details, String message) Constructor.- Parameters:
- uri- the diagnostic's identifying URI
- details- diagnostic details or- null
- message- diagnostic message or- null
 
 - 
SRUExceptionpublic SRUException(String uri, String message, Throwable cause) Constructor.- Parameters:
- uri- the diagnostic's identifying URI
- message- diagnostic message or- null
- cause- the cause of the error or- null
 
 - 
SRUExceptionpublic SRUException(String uri, String message) Constructor.- Parameters:
- uri- the diagnostic's identifying URI
- message- diagnostic message or- null
 
 - 
SRUExceptionpublic SRUException(String uri, Throwable cause) Constructor.- Parameters:
- uri- the diagnostic's identifying URI
- cause- the cause of the error or- null
 
 - 
SRUExceptionpublic SRUException(String uri) Constructor.- Parameters:
- uri- the diagnostic's identifying URI
 
 
- 
 - 
Method Detail- 
getDiagnosticpublic SRUDiagnostic getDiagnostic() Create a SRU diagnostic from this exception.- Returns:
- a SRUDiagnosticinstance
 
 
- 
 
-