Class InvalidResponseException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidResponseException
    extends MessageBasedException
    This exception is called when the API returns a non-JSON response
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidResponseException​(java.lang.String message, java.lang.String sensitiveAddition)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getSensitiveMessage()
      A description of the error which could contain sensitive information (e.g.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InvalidResponseException

        public InvalidResponseException​(java.lang.String message,
                                        java.lang.String sensitiveAddition)
    • Method Detail

      • getSensitiveMessage

        public java.lang.String getSensitiveMessage()
        A description of the error which could contain sensitive information (e.g. message contents) Separate from getMessage() in order to avoid unnecessary logging of sensitive data