diff options
Diffstat (limited to 'othersrc/OTRE/src/org/objectteams/Team.java')
-rw-r--r-- | othersrc/OTRE/src/org/objectteams/Team.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/othersrc/OTRE/src/org/objectteams/Team.java b/othersrc/OTRE/src/org/objectteams/Team.java index 1968c991a..fe0a5145a 100644 --- a/othersrc/OTRE/src/org/objectteams/Team.java +++ b/othersrc/OTRE/src/org/objectteams/Team.java @@ -414,7 +414,7 @@ public /* team */ class Team implements ITeam { /** * {@inheritDoc} */ - public boolean hasRole(Object aBase, Class<?> roleType) { + public boolean hasRole(Object aBase, Class<?> roleType) throws IllegalArgumentException { // overriding method to be generated by the compiler for each team with bound roles. throw new IllegalArgumentException("No such bound role type in this team: "+roleType.getName()); } @@ -430,7 +430,7 @@ public /* team */ class Team implements ITeam { /** * {@inheritDoc} */ - public <T> T getRole(Object aBase, Class<T> roleType) { + public <T> T getRole(Object aBase, Class<T> roleType) throws IllegalArgumentException { // overriding method to be generated by the compiler for each team with bound roles. return null; } @@ -446,7 +446,7 @@ public /* team */ class Team implements ITeam { /** * {@inheritDoc} */ - public <T> T[] getAllRoles(Class<T> roleType) { + public <T> T[] getAllRoles(Class<T> roleType) throws IllegalArgumentException { // overriding method to be generated by the compiler for each team with bound roles. throw new IllegalArgumentException("Class org.objectteams.Team has no bound roles."); } @@ -480,7 +480,7 @@ public /* team */ class Team implements ITeam { /** * {@inheritDoc} */ - public void unregisterRole(Object aRole, Class<?> roleType) { + public void unregisterRole(Object aRole, Class<?> roleType) throws IllegalArgumentException { // overriding method to be generated by the compiler for each team with bound roles. } |