io.sarl.lang.core
Class UnimplementedCapacityException
All Superinterfaces:
java.io.Serializable
class UnimplementedCapacityException
extends java.lang.Object
Thrown when an Agent tries to access a skill associated to a Capacity and no implementation has been mapped. To define the skill use setSkill(Skill, Class...) or setSkillIfAbsent(Skill, Class...).
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Property Summary
Modifier and type Property and description
java.util.UUID callingAgent
The ID of the agent trying to access the capacity.
java.lang.Class<T> unimplementedCapacity
The capacity that the agent was trying to access.
Constructor Summary
Constructor and description
new(Class<T>,UUID)
Creates a new instance of the exception.
new(Class<T>,UUID,Throwable)
Creates a new instance of the exception.
Action Summary
Modifier and type Action and description
java.util.UUID getCallingAgent
The ID of the agent trying to access the capacity.
java.lang.Class<T> getUnimplementedCapacity
The capacity that the agent was trying to access.
Property Details
callingAgent
val callingAgent : java.util.UUID
The ID of the agent trying to access the capacity.

This property is an alias for the action: getCallingAgent

Returns:
the calling agent.
unimplementedCapacity
val unimplementedCapacity : java.lang.Class<T>
The capacity that the agent was trying to access.

This property is an alias for the action: getUnimplementedCapacity

Returns:
the unimplemented capacity.
Constructor Details
new(Class<T>,UUID)
new(Class<T>,UUID)
Creates a new instance of the exception.
Parameters:
unimplementedCapacity - the capacitiy that the agent was trying to access.
agent - the agent accessing the capacity
new(Class<T>,UUID,Throwable)
new(Class<T>,UUID,Throwable)
Creates a new instance of the exception.
Parameters:
unimplementedCapacity - the capacitiy that the agent was trying to access.
agent - the agent accessing the capacity
cause - the cause of the error.
Since:
16.0
Action Details
getCallingAgent
def getCallingAgent : java.util.UUID
The ID of the agent trying to access the capacity.
Returns:
the calling agent.
getUnimplementedCapacity
def getUnimplementedCapacity : java.lang.Class<T>
The capacity that the agent was trying to access.
Returns:
the unimplemented capacity.