Class HelloSignException

  • All Implemented Interfaces:
    java.io.Serializable

    public class HelloSignException
    extends java.lang.Exception
    This class wraps all hellosign-java-sdk exceptions. This allows a developer to determine where the exception is coming from. It also allows us to store the HTTP code and error type from API calls.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HelloSignException​(java.lang.Exception e)  
      HelloSignException​(java.lang.String message)  
      HelloSignException​(java.lang.String message, java.lang.Integer httpCode)  
      HelloSignException​(java.lang.String message, java.lang.Integer httpCode, java.lang.String type)  
      HelloSignException​(java.lang.String message, java.lang.Integer httpCode, java.lang.String type, java.lang.Exception e)  
      HelloSignException​(java.lang.String message, java.lang.Throwable e)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getHttpCode()
      Returns the HTTP code associated with a HelloSign API call.
      java.lang.String getType()
      Returns the HelloSign API error type.
      • 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

      • HelloSignException

        public HelloSignException​(java.lang.Exception e)
      • HelloSignException

        public HelloSignException​(java.lang.String message)
      • HelloSignException

        public HelloSignException​(java.lang.String message,
                                  java.lang.Throwable e)
      • HelloSignException

        public HelloSignException​(java.lang.String message,
                                  java.lang.Integer httpCode)
      • HelloSignException

        public HelloSignException​(java.lang.String message,
                                  java.lang.Integer httpCode,
                                  java.lang.String type)
      • HelloSignException

        public HelloSignException​(java.lang.String message,
                                  java.lang.Integer httpCode,
                                  java.lang.String type,
                                  java.lang.Exception e)
    • Method Detail

      • getHttpCode

        public java.lang.Integer getHttpCode()
        Returns the HTTP code associated with a HelloSign API call. This may be null if the exception does not involve an API request.
        Returns:
        Integer or null if an HTTP code does not exist
      • getType

        public java.lang.String getType()
        Returns the HelloSign API error type. This may be null if the exception does not involve an API request.
        Returns:
        String or null if the error type does not exist