javax.jms.MessageEOFException Maven / Gradle / Ivy
/*
* @(#)MessageEOFException.java 1.8 02/04/09
*
* Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved.
*
* SUN PROPRIETARY/CONFIDENTIAL.
* This software is the proprietary information of Sun Microsystems, Inc.
* Use is subject to license terms.
*
*/
package javax.jms;
/**
* This exception must be thrown when an unexpected
* end of stream has been reached when a StreamMessage
or
* BytesMessage
is being read.
*
* @version 26 August 1998
* @author Rahul Sharma
**/
public class MessageEOFException extends JMSException {
/** Constructs a MessageEOFException
with the specified
* reason and error code.
*
* @param reason a description of the exception
* @param errorCode a string specifying the vendor-specific
* error code
*
**/
public
MessageEOFException(String reason, String errorCode) {
super(reason, errorCode);
}
/** Constructs a MessageEOFException
with the specified
* reason. The error code defaults to null.
*
* @param reason a description of the exception
**/
public
MessageEOFException(String reason) {
super(reason);
}
}