public class

ConnectionException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ org.mule.api.ConnectionException

Class Overview

Exception thrown when the method annotated with Connect fails to connect properly.

Summary

Public Constructors
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
Public Methods
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
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ConnectionException (ConnectionExceptionCode code, String thirdPartyCode, String message)

Create a new connection exception

Parameters
code Code describing what went wrong. Use ConnectionExceptionCode.UNKNOWN for unexpected problems.
thirdPartyCode Code as provided by the third party API
message Message describing what went wrong

public ConnectionException (ConnectionExceptionCode code, String thirdPartyCode, String message, Throwable throwable)

Create a new connection exception

Parameters
code Code describing what went wrong. Use ConnectionExceptionCode.UNKNOWN for unexpected problems.
thirdPartyCode Code as provided by the third party API
message Message describing what went wrong
throwable Inner exception

Public Methods

public ConnectionExceptionCode getCode ()

Get a code for what went wrong

public String getThirdPartyCode ()

Get a code for what went wrong as provided by the third party API

Returns
  • A string with the code