org.mule.api
Class ConnectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.mule.api.ConnectionException
All Implemented Interfaces:
Serializable

public class ConnectionException
extends Exception

Exception thrown when connect method in cloud connectors fails to connect properly.

See Also:
Serialized Form

Constructor Summary
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
 
Method Summary
 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
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionException

public ConnectionException(ConnectionExceptionCode code,
                           String thirdPartyCode,
                           String message)
Create a new connection exception

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

ConnectionException

public ConnectionException(ConnectionExceptionCode code,
                           String thirdPartyCode,
                           String message,
                           Throwable throwable)
Create a new connection exception

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

getCode

public ConnectionExceptionCode getCode()
Get a code for what went wrong

Returns:
A ConnectionExceptionCode

getThirdPartyCode

public String getThirdPartyCode()
Get a code for what went wrong as provided by the third party API

Returns:
A string with the code


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.