public class WrongAgentException
extends java.lang.IllegalArgumentException
For compatibility reasons, the exception currently extends
IllegalArgumentException. This may change in the future, so if the
exception should be handled, the WrongAgentException must be caught
explicitly.
| Modifier and Type | Field and Description |
|---|---|
QualifiedAgent |
callerAgent
The agent that called the operation.
|
QualifiedAgent |
expectedAgent
The agent that is expected to call the given operation.
|
| Constructor and Description |
|---|
WrongAgentException(java.lang.String message,
QualifiedAgent expectedAgent,
QualifiedAgent callerAgent)
Constructor that sets the fields of this exception.
|
public final QualifiedAgent callerAgent
public final QualifiedAgent expectedAgent
public WrongAgentException(java.lang.String message,
QualifiedAgent expectedAgent,
QualifiedAgent callerAgent)
message - The exception message.expectedAgent - The agent that is expected to call the given
operation.callerAgent - The agent that called the operation.