Class DepositionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- uk.org.esciencelab.researchobjectservice.deposition.DepositionException
-
- All Implemented Interfaces:
java.io.Serializable
public class DepositionException extends java.lang.RuntimeExceptionException thrown when an error occurs during the deposition process.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DepositionException(int status, com.fasterxml.jackson.databind.JsonNode nestedErrorDoc)DepositionException(java.lang.Exception e)DepositionException(java.lang.String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodegetError()A JSON error document that the external repository responded with, if applicable.intgetStatus()The HTTP status code that the external repository responded with, if applicable.
-
-
-
Constructor Detail
-
DepositionException
public DepositionException(java.lang.Exception e)
- Parameters:
e- The original Exception thrown when trying to deposit.
-
DepositionException
public DepositionException(java.lang.String msg)
- Parameters:
msg- The exception message.
-
DepositionException
public DepositionException(int status, com.fasterxml.jackson.databind.JsonNode nestedErrorDoc)- Parameters:
status- The HTTP status code.nestedErrorDoc- A JSON structure from the 3rd party service detailing any errors.
-
-