Example usage for com.rabbitmq.utility Utility fixStackTrace

List of usage examples for com.rabbitmq.utility Utility fixStackTrace

Introduction

In this page you can find the example usage for com.rabbitmq.utility Utility fixStackTrace.

Prototype

public static <T extends Throwable & SensibleClone<T>> T fixStackTrace(T throwable) 

Source Link

Usage

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

License:Apache License

/**
 * Check if we are in shutdown mode and if so throw an exception.
 *//*from  w  w w  .  jav  a2 s  .com*/
private void checkShutdown() {
    if (shutdown != null) {
        throw Utility.fixStackTrace(shutdown);
    }
}