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 |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
msg
protected MessageType msg
- The message in which context the exception occured
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 messagemsg
- the message which caused the exception
getContainedMessage
public MessageType getContainedMessage()
- Returns the message, which caused the exception.
- Returns:
- the message causing the exception
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.