be.SIRAPRISE.client
Class CommunicationProtocolException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by be.SIRAPRISE.client.CommunicationProtocolException
All Implemented Interfaces:
java.io.Serializable

public class CommunicationProtocolException
extends java.lang.Exception

A CommunicationProtocolException indicates that an unexpected message type has appeared in a communication scenario between a client and a SIRA_PRISE server, or that some problem has occurred which prevented the communication from succeeding (such as e.g. a Signature computation that failed for some reason).

Author:
Erwin Smout
See Also:
Serialized Form

Constructor Summary
CommunicationProtocolException(int messageType, int fullMessageVersion)
          Creates the exception, setting a message that the given messageType/version was not found by the engine seeking it.
CommunicationProtocolException(java.lang.String msg, java.lang.Exception cause)
          Creates the exception, setting a message that the cause of this exception is the other exception given as an argument here
CommunicationProtocolException(java.lang.String name, int messageType)
          Deprecated.  
CommunicationProtocolException(java.lang.String name, java.lang.String expectedType)
          Creates the exception, setting a message that the messageType/version obtained from an InputStream did not match the expected message type.
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommunicationProtocolException

public CommunicationProtocolException(java.lang.String name,
                                      int messageType)
Deprecated. 

Creates the exception, setting a message that the messageType/version obtained from an InputStream did not match the expected message type.

Parameters:
messageType - The numeric ID of the message type expected.
name - The classname of the message actually received from the stream

CommunicationProtocolException

public CommunicationProtocolException(java.lang.String name,
                                      java.lang.String expectedType)
Creates the exception, setting a message that the messageType/version obtained from an InputStream did not match the expected message type.

Parameters:
expectedType - The classname of the message expected by the system
name - The classname of the message actually received from the stream

CommunicationProtocolException

public CommunicationProtocolException(int messageType,
                                      int fullMessageVersion)
Creates the exception, setting a message that the given messageType/version was not found by the engine seeking it.

Parameters:
messageType - The numeric ID of the message type sought.
fullMessageVersion - The number indicating the major and minor version numbers of the message type that was not found.

CommunicationProtocolException

public CommunicationProtocolException(java.lang.String msg,
                                      java.lang.Exception cause)
Creates the exception, setting a message that the cause of this exception is the other exception given as an argument here

Parameters:
msg - The basic message to be displayed
cause - The exception that caused the need for this one to be thrown