public class ConnectionException extends Exception
| Constructor and Description |
|---|
ConnectionException(ConnectionExceptionCode code,
String thirdPartyCode,
String message)
Create a new connection exception
|
ConnectionException(ConnectionExceptionCode code,
String thirdPartyCode,
String message,
Throwable throwable)
Create a new connection exception
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionExceptionCode |
getCode()
Get a code for what went wrong
|
String |
getThirdPartyCode()
Get a code for what went wrong as provided
by the third party API
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ConnectionException(ConnectionExceptionCode code, String thirdPartyCode, String message)
code - Code describing what went wrong. Use ConnectionExceptionCode for unexpected problems.thirdPartyCode - Code as provided by the third party APImessage - Message describing what went wrongpublic ConnectionException(ConnectionExceptionCode code, String thirdPartyCode, String message, Throwable throwable)
code - Code describing what went wrong. Use ConnectionExceptionCode for unexpected problems.thirdPartyCode - Code as provided by the third party APIthrowable - Inner exceptionmessage - Message describing what went wrongpublic ConnectionExceptionCode getCode()
ConnectionExceptionCodepublic String getThirdPartyCode()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.