Agent System POND 1.2 (28.2.2002)

PkgAgentSystem.Messaging
Class MessageException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--PkgAgentSystem.AgentException
                    |
                    +--PkgAgentSystem.Messaging.MessageException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalMessageException, MessageDeliveryException, UnknownAgentException

public class MessageException
extends AgentException

Parent class of exceptions arising in connection with a certain message from an agent to another one. Can also be used for general problems.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
Message, Serialized Form

Field Summary
protected  MessageType msg
          The message in which context the exception occured
 
Constructor Summary
MessageException()
          Constructs a MessageException without a specified detail message.
MessageException(String detail)
          Constructs a MessageException with the specified detail message.
MessageException(String detail, MessageType msg)
          Constructs a MessageException with the specified detail message and the message itself.
 
Method Summary
 MessageType getContainedMessage()
          Returns the message, which caused the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

msg

protected MessageType msg
The message in which context the exception occured
Constructor Detail

MessageException

public MessageException()
Constructs a MessageException without a specified detail message.

MessageException

public MessageException(String detail)
Constructs a MessageException with the specified detail message.
Parameters:
detail - the detail message

MessageException

public MessageException(String detail,
                        MessageType msg)
Constructs a MessageException with the specified detail message and the message itself.
Parameters:
detail - the detail message
msg - the message which caused the exception
Method Detail

getContainedMessage

public MessageType getContainedMessage()
Returns the message, which caused the exception.
Returns:
the message causing the exception

Agent System POND 1.2 (28.2.2002)

Submit a bug

Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.