public class UnimplementedCapacityException extends RuntimeException
Agent
tries to access a skill associated to a Capacity
and no implementation has been mapped. To define the skill use
AbstractSkillContainer.setSkill(S, java.lang.Class<? extends io.sarl.lang.core.Capacity>...)
.Constructor and Description |
---|
UnimplementedCapacityException(unimplementedCapacity : Class<? extends Capacity>,
agent : UUID)
Creates a new instance of the exception.
|
UnimplementedCapacityException(unimplementedCapacity : Class<? extends Capacity>,
agent : UUID,
cause : Throwable)
Creates a new instance of the exception.
|
Modifier and Type | Method and Description |
---|---|
UUID |
getCallingAgent()
The ID of the agent trying to access the capacity.
|
Class<? extends Capacity> |
getUnimplementedCapacity()
The capacity that the agent was trying to access.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public new
(unimplementedCapacity : Class<? extends Capacity>,
agent : UUID)
unimplementedCapacity
- the capacitiy that the agent was trying to access.agent
- the agent accessing the capacitypublic new
(unimplementedCapacity : Class<? extends Capacity>,
agent : UUID,
cause : Throwable)
unimplementedCapacity
- the capacitiy that the agent was trying to access.agent
- the agent accessing the capacitycause
- the cause of the error.@Pure
public def
getCallingAgent() : UUID
UnimplementedCapacityException
@Pure
public def
getUnimplementedCapacity() : Class<? extends Capacity>
UnimplementedCapacityException
Copyright © 2021 the original authors or authors.