Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

javax::jms::MessageFormatException Class Reference

This exception must be thrown when a JMS client attempts to use a data type not supported by a message or attempts to read data in a message as the wrong type. More...

#include <javax_jms_MessageFormatException.h>

Inheritance diagram for javax::jms::MessageFormatException:

Inheritance graph
[legend]
Collaboration diagram for javax::jms::MessageFormatException:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9,
  xmogBuildNumber = 2047
}
typedef ::xmog_java_array_template<
::javax::jms::MessageFormatException
array1D
typedef ::xmog_java_array_template<
::xmog_java_array_template<
::javax::jms::MessageFormatException > > 
array2D

Public Member Functions

 MessageFormatException (const ::java::lang::String &reason, const ::java::lang::String &errorCode,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs a MessageFormatException with the specified reason and error code.
 MessageFormatException (const ::java::lang::String &reason,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs a MessageFormatException with the specified reason.

Detailed Description

This exception must be thrown when a JMS client attempts to use a data type not supported by a message or attempts to read data in a message as the wrong type.

It must also be thrown when equivalent type errors are made with message property values. For example, this exception must be thrown if StreamMessage.writeObject is given an unsupported class or if StreamMessage.readShort is used to read a boolean value. Note that the special case of a failure caused by an attempt to read improperly formatted String data as numeric values must throw the java.lang.NumberFormatException.

Author:
Rahul Sharma


Constructor & Destructor Documentation

javax::jms::MessageFormatException::MessageFormatException const ::java::lang::String reason,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs a MessageFormatException with the specified reason.

The error code defaults to null.

Parameters:
reason a description of the exception
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.

javax::jms::MessageFormatException::MessageFormatException const ::java::lang::String reason,
const ::java::lang::String errorCode,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs a MessageFormatException with the specified reason and error code.

Parameters:
reason a description of the exception
errorCode a string specifying the vendor-specific error code
p_xenv the local call environment. The default value is NULL.
f_xflags the flags that allow control over the reference type and other internal matters. The default value is xmog_base::GLOBAL.


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 10:19:53 2006 for JMS Courier for C++ by  doxygen 1.4.1