Class RestException

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class RestException
    extends Exception
                        

    Исключение, выбрасываемое некоторыми методами класса RestServiceClientHelper.

    В fullMessage исключения передается строка с ответом от сервиса

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      RestException(String fullMessage, HttpResponse httpResponse, String message) Конструктор класса
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getFullMessage()
      final HttpResponse getHttpResponse()
      • Methods inherited from class kotlin.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, toString, wait, wait, wait
    • Constructor Detail

      • RestException

        RestException(String fullMessage, HttpResponse httpResponse, String message)
        Конструктор класса
        Parameters:
        fullMessage - Ответ от сервиса в виде строки
        httpResponse - Ответ от сервиса
        message - Сообщение об ошибке