Class COM.odi.jcpp.PeerMethodException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.lang.RuntimeException
|
+----COM.odi.ObjectStoreException
|
+----COM.odi.jcpp.PeerMethodException
- public class PeerMethodException
- extends ObjectStoreException
- implements CPlusPlusException
The class for all exceptions that are thrown in Java in response to an
unhandled C++ or TIX exception that does not have an associated
ObjectStore-determined Java exception.
-
getMessage()
- Returns the message previously associated with the exception with
the setMessage() method.
-
noteExceptionMap(String, String)
- Creates an association between a C++ exception name and the name of
the Java class that will be thrown.
-
setMessage(String)
- Sets the message associated with the exception.
noteExceptionMap
public static void noteExceptionMap(String javaException,
String cppException)
- Creates an association between a C++ exception name and the name of
the Java class that will be thrown. Many different C++ exceptions can map to
the same Java exception.
- Parameters:
- javaException - Name of the Java exception that must be thrown.
This class must
- Implement the COM.odi.jcpp.CPlusPlusException interface
- Be a subclass of the java.lang.RuntimeException class
- Be public
- Have a public no-arguments constructor
- cppException - Name of the C++ exception. This can be a TIX
exception or a C++ exception.
This is the name that would be returned in the
PeerReturnValue instance to indicate that an exception needs to
be thrown.
setMessage
public final void setMessage(String detailMessage)
- Sets the message associated with the exception.
- Parameters:
- detailMessage - String that provides the message.
getMessage
public final String getMessage()
- Returns the message previously associated with the exception with
the setMessage() method.
- Overrides:
- getMessage in class Throwable
Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.