Class RestException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class RestException extends Exception
Исключение, выбрасываемое некоторыми методами класса RestServiceClientHelper.
В fullMessage исключения передается строка с ответом от сервиса
-
-
Field Summary
Fields Modifier and Type Field Description private final StringfullMessageprivate final HttpResponsehttpResponseprivate final Throwablecauseprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description RestException(String fullMessage, HttpResponse httpResponse, String message)Конструктор класса
-
Method Summary
Modifier and Type Method Description final StringgetFullMessage()final HttpResponsegetHttpResponse()-
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
-
-
Method Detail
-
getFullMessage
final String getFullMessage()
-
getHttpResponse
final HttpResponse getHttpResponse()
-
-
-
-