Interface COM.odi.jcpp.CPlusPlusException

public interface CPlusPlusException
CPlusPlusException defines the interface that must be implemented by a class for that class to be suitable as a peer class for C++ and TIX exceptions that

  • Originate in the C++ code of your ObjectStore Java application
  • Must be thrown from the Java code in your ObjectStore Java application

    The class that implements this interface must:

  • Be public
  • Have a public constructor with one String argument, or a no-arguments constructor
  • Be a subclass of java.lang.RuntimeException

    These requirements cannot be expressed in the Java interface mechanism. These requirements stem from ObjectStore's use of Class.newInstance() to allocate instances of these objects.


    Method Index

     o getMessage()
    Returns the message that was associated with the exception by the setMessage() method.
     o setMessage(String)
    Sets the message associated with the exception.

    Methods

     o setMessage
      public abstract void setMessage(String detailMessage)
    
    Sets the message associated with the exception.

    Parameters:
    detailMessage - A string that contains the message to display when the exception is thrown.
     o getMessage
      public abstract String getMessage()
    
    Returns the message that was associated with the exception by the setMessage() method.


    Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.