-
- All Implemented Interfaces:
-
java.io.Serializable
public final 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 final MetricsgetMetrics()ThrowablegetCause()StringgetMessage()-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, 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
-
getMetrics
final Metrics getMetrics()
-
getMessage
String getMessage()
-
-
-
-