Class DepositionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DepositionException
    extends java.lang.RuntimeException
    Exception thrown when an error occurs during the deposition process.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.JsonNode getError()
      A JSON error document that the external repository responded with, if applicable.
      int getStatus()
      The HTTP status code that the external repository responded with, if applicable.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • 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.
    • Method Detail

      • getError

        public com.fasterxml.jackson.databind.JsonNode getError()
        A JSON error document that the external repository responded with, if applicable.
      • getStatus

        public int getStatus()
        The HTTP status code that the external repository responded with, if applicable.