org.purl.sword.base
Class SWORDErrorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
SWORDErrorException(String errorURI, String description)
          Create a new instance and store the specified data.
 
Method Summary
 String getDescription()
           
 String getErrorURI()
           
 int getStatus()
           
 void setStatus(int status)
          Set the status
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SWORDErrorException

public SWORDErrorException(String errorURI,
                           String description)
Create a new instance and store the specified data.

Parameters:
errorURI - The errorURI of the exception being thrown
description - A description of the error thrown.
Method Detail

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 © 2013 DuraSpace. All Rights Reserved.