-
- All Implemented Interfaces:
-
java.io.Serializable
public class HttpException extends IOException
Custom http exception, which wraps all errrors during http communication (both IOExceptions and unexpected ones) We use it to pass http request metrics in case of error and distinguish from regular IOExceptions.
In order to do that - check cause of this exception
-
-
Constructor Summary
Constructors Constructor Description HttpException(Throwable cause, Metrics metrics)
-
Method Summary
Modifier and Type Method Description MetricsgetMetrics()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMetrics
@NonNull() Metrics getMetrics()
-
-
-
-