Example usage for org.springframework.amqp AmqpIOException AmqpIOException

List of usage examples for org.springframework.amqp AmqpIOException AmqpIOException

Introduction

In this page you can find the example usage for org.springframework.amqp AmqpIOException AmqpIOException.

Prototype

public AmqpIOException(String message, Throwable cause) 

Source Link

Document

Construct an instance with the provided message and cause.

Usage

From source file:org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer.java

@Override
public void addQueueNames(String... queueNames) {
    try {/*w w  w  .ja v a 2  s . co  m*/
        addQueues(Arrays.stream(queueNames));
    } catch (AmqpIOException e) {
        throw new AmqpIOException("Failed to add " + Arrays.asList(queueNames), e.getCause());
    }
    super.addQueueNames(queueNames);
}

From source file:org.springframework.amqp.rabbit.listener.DirectMessageListenerContainer.java

@Override
public void addQueues(Queue... queues) {
    try {//from   www. j  a v  a2s .  c  o  m
        addQueues(Arrays.stream(queues).map(Queue::getName));
    } catch (AmqpIOException e) {
        throw new AmqpIOException("Failed to add " + Arrays.asList(queues), e.getCause());
    }
    super.addQueues(queues);
}