public class MessagingException extends Exception
errorCode for each faulty scenario.
This error code can be used to handle fault handling scenarios like Circuit Breaker.
Eg: ( Demonstration purpose only. Refer CarbonMessageProcess implantation for specific errorCodes)
10100 HTTP Connection timeout.
10101 HTTP Connection Failed.
10102 HTTP Connection Failed. etc.| Constructor and Description |
|---|
MessagingException(int errorCode) |
MessagingException(String message,
int errorCode) |
MessagingException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace,
int errorCode) |
MessagingException(String message,
Throwable cause,
int errorCode) |
MessagingException(Throwable cause,
int errorCode) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2017 WSO2. All rights reserved.