Class FailedToCreateConsumerException

All Implemented Interfaces:
Serializable

public class FailedToCreateConsumerException extends RuntimeCamelException
Thrown when an Endpoint cannot produce a Consumer, for example because the endpoint URI is not consumer-capable, required options are missing, or an underlying client connection cannot be opened.

The originating endpoint URI is sanitized (credentials removed) before being included in the message.

See Also:
  • Constructor Details

    • FailedToCreateConsumerException

      public FailedToCreateConsumerException(String endpointURI, Throwable cause)
      Parameters:
      endpointURI - the URI of the endpoint for which consumer creation failed
      cause - the cause of the failure
    • FailedToCreateConsumerException

      public FailedToCreateConsumerException(Endpoint endpoint, Throwable cause)
      Parameters:
      endpoint - the endpoint for which consumer creation failed
      cause - the cause of the failure
    • FailedToCreateConsumerException

      public FailedToCreateConsumerException(Endpoint endpoint, String message, Throwable cause)
      Parameters:
      endpoint - the endpoint for which consumer creation failed
      message - the detail message
      cause - the cause of the failure
    • FailedToCreateConsumerException

      public FailedToCreateConsumerException(Endpoint endpoint, String message)
      Parameters:
      endpoint - the endpoint for which consumer creation failed
      message - the detail message
  • Method Details

    • getUri

      public String getUri()