Class CloudExecutionException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AppException

    public class CloudExecutionException
    extends java.lang.Exception
    Thrown when exception occurs interaction of KiiCloud.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CloudExecutionException()
      Constructs an empty CloudExecutionException
        CloudExecutionException​(int status, java.lang.String body)
      Constructs an CloudExecutionException with unknown message from the server
        CloudExecutionException​(int status, java.lang.String body, java.lang.String error, java.lang.String exception, java.lang.String description)
      Constructs an CloudExecutionException with message from the server
      protected CloudExecutionException​(java.lang.String message, java.lang.Throwable cause)  
      protected CloudExecutionException​(java.lang.String message, java.lang.Throwable cause, int httpStatus, java.lang.String httpBody)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBody()
      HTTP response body.
      java.lang.String getError()
      Describe the error summary.
      java.lang.String getErrorCode()
      gets the error code.
      java.lang.String getErrorDetails()
      Describe the error in details
      java.lang.String getException()
      Error message included in the body.
      java.lang.String getMessage()  
      int getStatus()
      HTTP status code.
      • Methods inherited from class java.lang.Throwable

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

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

      • CloudExecutionException

        protected CloudExecutionException()
        Constructs an empty CloudExecutionException
      • CloudExecutionException

        protected CloudExecutionException​(java.lang.String message,
                                          java.lang.Throwable cause)
      • CloudExecutionException

        protected CloudExecutionException​(java.lang.String message,
                                          java.lang.Throwable cause,
                                          int httpStatus,
                                          java.lang.String httpBody)
      • CloudExecutionException

        public CloudExecutionException​(int status,
                                       @Nullable
                                       java.lang.String body,
                                       @Nullable
                                       java.lang.String error,
                                       @Nullable
                                       java.lang.String exception,
                                       @Nullable
                                       java.lang.String description)
        Constructs an CloudExecutionException with message from the server
      • CloudExecutionException

        public CloudExecutionException​(int status,
                                       @Nullable
                                       java.lang.String body)
        Constructs an CloudExecutionException with unknown message from the server
    • Method Detail

      • getError

        @Nullable
        public java.lang.String getError()
        Describe the error summary.
        Returns:
        error summary in String.
      • getErrorDetails

        @Nullable
        public java.lang.String getErrorDetails()
        Describe the error in details
        Returns:
        error details in String. null if there are no detail information.
      • getException

        @Nullable
        public java.lang.String getException()
        Error message included in the body.
        Returns:
        Error message in String. null if there are no error message in the body.
      • getStatus

        public int getStatus()
        HTTP status code.
        Returns:
        HTTP status code.
      • getBody

        @Nullable
        public java.lang.String getBody()
        HTTP response body.
        Returns:
        HTTP response body
      • getErrorCode

        @Nullable
        public java.lang.String getErrorCode()
        gets the error code.
        Returns:
        Error code
      • getMessage

        @NonNull
        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable