Package ai.tock.shared.exception.rest
Class RestException
-
- All Implemented Interfaces:
-
java.io.Serializable
public class RestException extends Exception
Base class for rest exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description private final ErrorMessageWrapperhttpResponseBodyprivate final HttpResponseStatushttpResponseStatusprivate final Throwablecauseprivate final Stringmessage
-
Constructor Summary
Constructors Constructor Description RestException(ErrorMessageWrapper httpResponseBody, HttpResponseStatus httpResponseStatus)
-
Method Summary
Modifier and Type Method Description final ErrorMessageWrappergetHttpResponseBody()final HttpResponseStatusgetHttpResponseStatus()-
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(ErrorMessageWrapper httpResponseBody, HttpResponseStatus httpResponseStatus)
-
-
Method Detail
-
getHttpResponseBody
final ErrorMessageWrapper getHttpResponseBody()
-
getHttpResponseStatus
final HttpResponseStatus getHttpResponseStatus()
-
-
-
-