Agent System POND 1.2 (28.2.2002)

PkgAgentSystem
Class InitializationException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--PkgAgentSystem.AgentException
                    |
                    +--PkgAgentSystem.InitializationException
All Implemented Interfaces:
Serializable

public class InitializationException
extends AgentException

Signifies that an exception occured during initialization of an agent.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
AgentBase.initialize(Object), AgentSystem.startAgent(AgentBase,String,boolean,AgentIdentity,PrivateKey,Serializable), AgentSystem.startAgent(String,String,boolean,AgentIdentity,PrivateKey,Object,boolean), Serialized Form

Field Summary
protected  Exception e
          The contained exception, which occured during initialization of the agent.
 
Constructor Summary
InitializationException()
          Constructs a InitializationException without a specified detail message.
InitializationException(Exception e)
          Constructs a InitializationException with a certain exception.
InitializationException(String detail)
          Constructs a InitializationException with the specified detail message.
 
Method Summary
 Exception getException()
          Returns the contained exception.
 String toString()
          Returns a string representation of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

e

protected Exception e
The contained exception, which occured during initialization of the agent. May be null, but then a detail message should be provided.
Constructor Detail

InitializationException

public InitializationException(String detail)
Constructs a InitializationException with the specified detail message. Use this if a problem occured during initialization which is not another exception.
Parameters:
detail - the detail message

InitializationException

public InitializationException(Exception e)
Constructs a InitializationException with a certain exception. Use this if no specific problem occured but rather somewhere else something went wrong during initialization.
Parameters:
detail - the detail message

InitializationException

public InitializationException()
Constructs a InitializationException without a specified detail message.
Method Detail

getException

public Exception getException()
Returns the contained exception.
Returns:
the exception which occured during initialization

toString

public String toString()
Returns a string representation of the exception.
Overrides:
toString in class Throwable
Returns:
a string representation of this exception. If an exception is contained, its string representation is also included.

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.