Class ApiError

  • All Implemented Interfaces:
    java.io.Serializable

    public class ApiError
    extends MergeException
    This exception type will be thrown for any non-2XX API responses.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiError​(java.lang.String message, int statusCode, java.lang.Object body)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object body()  
      int statusCode()  
      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

      • ApiError

        public ApiError​(java.lang.String message,
                        int statusCode,
                        java.lang.Object body)
    • Method Detail

      • statusCode

        public int statusCode()
        Returns:
        the statusCode
      • body

        public java.lang.Object body()
        Returns:
        the body
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable