universal.exception
Class NotUserException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.omg.CORBA.UserException
                    |
                    +--universal.exception.NotUserException
All Implemented Interfaces:
org.omg.CORBA.portable.IDLEntity, java.io.Serializable

public final class NotUserException
extends org.omg.CORBA.UserException

This exception is thrown when the replicated server that receives a request finally doesn't trust itself as the leader.

The client is waiting for a response, so this exception is thrown .Like this instead of waiting the client will resend the request.
If in the method Invoke of the org.omg.CORBA.Delegate we catch an UserException, we test if this exception is of type NotUserException. If it is the case, we send org.omg.CORBA.portable.StopMarshallException. When this StopMarshallException is catched in the Stub of the application, we restart the process to send a request from the beginning.

See Also:
Serialized Form

Field Summary
 int errorcode
           
 java.lang.String reason
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NotUserException()
           
NotUserException(int errorcode, java.lang.String reason)
           
NotUserException(java.lang.String orb_reason, int errorcode, java.lang.String reason)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorcode

public int errorcode

reason

public java.lang.String reason
Constructor Detail

NotUserException

public NotUserException()

NotUserException

public NotUserException(int errorcode,
                        java.lang.String reason)

NotUserException

public NotUserException(java.lang.String orb_reason,
                        int errorcode,
                        java.lang.String reason)