Package org.fcrepo.client
Class FcrepoOperationFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.fcrepo.client.FcrepoOperationFailedException
-
- All Implemented Interfaces:
Serializable
public class FcrepoOperationFailedException extends Exception
Represents a failure of the underlying HTTP client's interaction with fedora.- Since:
- January 8, 2015
- Author:
- Aaron Coburn
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FcrepoOperationFailedException(URI url, int statusCode, String statusText)Create an FcrepoOperationFailedException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStatusCode()Get the status codeStringgetStatusText()Get the status textURIgetUrl()Return the requested url-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FcrepoOperationFailedException
public FcrepoOperationFailedException(URI url, int statusCode, String statusText)
Create an FcrepoOperationFailedException- Parameters:
url- the requested urlstatusCode- the HTTP response codestatusText- the response message
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
Get the status code- Returns:
- the HTTP status code
-
getStatusText
public String getStatusText()
Get the status text- Returns:
- the status text for the error
-
-