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

java::lang::Exception Class Reference

The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch. More...

#include <java_lang_Exception.h>

Inheritance diagram for java::lang::Exception:

Inheritance graph
[legend]
Collaboration diagram for java::lang::Exception:

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<
::java::lang::Exception
array1D
typedef ::xmog_java_array_template<
::xmog_java_array_template<
::java::lang::Exception > > 
array2D

Public Member Functions

 Exception (const ::java::lang::String &message, const ::java::lang::Throwable &cause,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs a new exception with the specified detail message and cause.
 Exception (::xmog_dummy _use_java_ctor,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs a new exception with null as its detail message.
 Exception (const ::java::lang::Throwable &cause,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
 Exception (const ::java::lang::String &message,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags)
 Constructs a new exception with the specified detail message.

Detailed Description

The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.

Author:
Frank Yellin


Constructor & Destructor Documentation

java::lang::Exception::Exception const ::java::lang::String message,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs a new exception with the specified detail message.

The cause is not initialized, and may subsequently be initialized by a call to .

Parameters:
message the detail message. The detail message is saved for later retrieval by the method.
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.

java::lang::Exception::Exception const ::java::lang::Throwable cause,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

This constructor is useful for exceptions that are little more than wrappers for other throwables (for example, ).

Parameters:
cause the cause (which is saved for later retrieval by the method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
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.

java::lang::Exception::Exception ::xmog_dummy  _use_java_ctor,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs a new exception with null as its detail message.

The cause is not initialized, and may subsequently be initialized by a call to .

Parameters:
_use_java_ctor indicates that you want to delegate to a Java constructor whose natural proxy conflicts with a C++ requirement.
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.

java::lang::Exception::Exception const ::java::lang::String message,
const ::java::lang::Throwable cause,
::xmog_localenv p_xenv = NULL,
xmog_flags  f_xflags = xmogDefaultFlags
 

Constructs a new exception with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
message the detail message (which is saved for later retrieval by the method).
cause the cause (which is saved for later retrieval by the method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
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:24 2006 for JMS Courier for C++ by  doxygen 1.4.1