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 String
fullMessage
private final HttpResponse
httpResponse
private final Throwable
cause
private final String
message
-
Constructor Summary
Constructors Constructor Description RestException(String fullMessage, HttpResponse httpResponse, String message)
Конструктор класса
-
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
-
-
Method Detail
-
getFullMessage
final String getFullMessage()
-
getHttpResponse
final HttpResponse getHttpResponse()
-
-
-
-