alma::acs::exceptions::CorbaExceptionConverter Class Reference

Collaboration diagram for alma::acs::exceptions::CorbaExceptionConverter:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void convertErrorTraceToJavaException (ErrorTrace et, AcsJException jEx)
static Throwable convertHiddenErrorTrace (Throwable thr)

Static Public Attributes

static final String PROPERTY_JAVAEXCEPTION_CLASS = "javaex.class"
static final String PROPERTY_JAVAEXCEPTION_MESSAGE = "javaex.msg"

Static Package Functions

static Throwable recursiveGetThrowable (ErrorTrace et)

Static Private Member Functions

static void resurrectThrowable (Throwable thr, ErrorTrace et)

Detailed Description

Author:
hsommer created Sep 26, 2003 10:53:40 AM

Member Function Documentation

static void alma::acs::exceptions::CorbaExceptionConverter::convertErrorTraceToJavaException ( ErrorTrace  et,
AcsJException  jEx 
) [inline, static]
static Throwable alma::acs::exceptions::CorbaExceptionConverter::convertHiddenErrorTrace ( Throwable  thr  )  [inline, static]

Checks if a given Throwable is of a CORBA type generated by the ACS error system. If so, the embedded error trace is converted to a chain of AcsJ-style exceptions.

The check is based on the fact that all ACS error system exceptions derive from org.omg.CORBA.UserException, and have a field errorTrace of type alma.ACSErr.ErrorTrace.

Parameters:
thr 
Returns:
The converted Throwable, or thr itself if no conversion is necessary, or if the conversion failed with an exception.
static Throwable alma::acs::exceptions::CorbaExceptionConverter::recursiveGetThrowable ( ErrorTrace  et  )  [inline, static, package]

Converts an ErrorTrace object to a Java Throwable. The chain of caused-by exceptions is translated, too.

See the comment on class substitution at DefaultAcsJException.

Parameters:
et 
Returns:
Throwable current implementation always returns a subclass of AcsJException, but don't rely on it yet.

References PROPERTY_JAVAEXCEPTION_CLASS, PROPERTY_JAVAEXCEPTION_MESSAGE, and alma::ACSErr::ErrorTrace::shortDescription.

static void alma::acs::exceptions::CorbaExceptionConverter::resurrectThrowable ( Throwable  thr,
ErrorTrace  et 
) [inline, static, private]

Member Data Documentation

Referenced by recursiveGetThrowable().

Referenced by recursiveGetThrowable().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2