Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

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

List of all members.

Static Public Member Functions

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

Static Public Attributes

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

Static Package Functions

Throwable recursiveGetThrowable (ErrorTrace et)

Static Private Member Functions

void resurrectThrowable (Throwable thr, ErrorTrace et)

Detailed Description

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


Member Function Documentation

void alma::acs::exceptions::CorbaExceptionConverter::convertErrorTraceToJavaException ErrorTrace  et,
AcsJException  jEx
[inline, 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.

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.

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


Member Data Documentation

final String alma::acs::exceptions::CorbaExceptionConverter::PROPERTY_JAVAEXCEPTION_CLASS = "javaex.class" [static]
 

final String alma::acs::exceptions::CorbaExceptionConverter::PROPERTY_JAVAEXCEPTION_MESSAGE = "javaex.msg" [static]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:55 2009 for ACS Java API by doxygen 1.3.8