org.purl.sword.base
Class SWORDErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.purl.sword.base.SWORDErrorException
- All Implemented Interfaces:
- Serializable
public class SWORDErrorException
- extends Exception
Represents a generic SWORD exception. If this thrown by a repository,
it would result in a SWORD Error Document being thrown.
- Author:
- Stuart Lewis
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
SWORDErrorException
public SWORDErrorException(String errorURI,
String description)
- Create a new instance and store the specified data.
- Parameters:
errorURI - The errorURI of the exception being throwndescription - A description of the error thrown.
getErrorURI
public String getErrorURI()
- Returns:
- the errorURI
getStatus
public int getStatus()
- Returns:
- the status
setStatus
public void setStatus(int status)
- Set the status
- Parameters:
status - The HTTP status code
getDescription
public String getDescription()
- Returns:
- the description
Copyright © 2009 The DSpace Foundation. All Rights Reserved.