Class RestInvocationHelper.RequestFailedException

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    RestInvocationHelper

    public static class RestInvocationHelper.RequestFailedException
    extends java.lang.RuntimeException
    Exception
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String content
      The received content
      protected int statuscode
      Return status code
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestFailedException​(java.lang.String message, int statuscode, java.lang.String content)
      Create the exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContent()
      Gets the received content.
      int getStatuscode()
      Gets the received status code.
      void setContent​(java.lang.String content)
      Sets the received content.
      void setStatuscode​(int statuscode)
      Sets the received status code.
      • 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
    • Field Detail

      • statuscode

        protected int statuscode
        Return status code
      • content

        protected java.lang.String content
        The received content
    • Constructor Detail

      • RequestFailedException

        public RequestFailedException​(java.lang.String message,
                                      int statuscode,
                                      java.lang.String content)
        Create the exception.
        Parameters:
        response - The received response.
    • Method Detail

      • getStatuscode

        public int getStatuscode()
        Gets the received status code.
        Returns:
        The received status code.
      • setStatuscode

        public void setStatuscode​(int statuscode)
        Sets the received status code.
        Parameters:
        statuscode - The received status code.
      • getContent

        public java.lang.String getContent()
        Gets the received content.
        Returns:
        The received content.
      • setContent

        public void setContent​(java.lang.String content)
        Sets the received content.
        Parameters:
        statuscode - The received content.