Example usage for javax.jms MessageNotReadableException MessageNotReadableException

List of usage examples for javax.jms MessageNotReadableException MessageNotReadableException

Introduction

In this page you can find the example usage for javax.jms MessageNotReadableException MessageNotReadableException.

Prototype

public MessageNotReadableException(String reason) 

Source Link

Document

Constructs a MessageNotReadableException with the specified reason.

Usage

From source file:com.amazon.sqs.javamessaging.message.SQSBytesMessage.java

void checkCanRead() throws JMSException {
    if (bytes == null) {
        throw new MessageNotReadableException("Message is not readable");
    }/*from  w  w w. j a v  a 2s . c o m*/
}