|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.purl.sword.base.SWORDException
public class SWORDException
Represents a generic SWORD exception. If this thrown by a repository, it would result in a HTTP 500 message being returned to the user.
| Constructor Summary | |
|---|---|
SWORDException(String message)
Create a new instance and store the specified message. |
|
SWORDException(String message,
Exception source)
Create a new instance and store the specified message and source data. |
|
SWORDException(String message,
Exception source,
String errorCode)
Create a new instance and store the specified message and source data. |
|
| Method Summary | |
|---|---|
String |
getErrorCode()
Get the error code |
| 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 |
|---|
public SWORDException(String message,
Exception source)
message - The message for the exception.source - The original exception that lead to this exception. This
can be null.
public SWORDException(String message,
Exception source,
String errorCode)
message - The message for the exception.source - The original exception that lead to this exception. This
can be null.errorCode - The error code to sed back with the requestpublic SWORDException(String message)
message - The message for the exception.| Method Detail |
|---|
public String getErrorCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||