Should an invalid Assign Client To Group throw an error
Posted: Wed Sep 21, 2011 1:23 am
I have something which borders on being a bug, though it may be (arguably) an undocumented feature.
There are some commands in TI which will not throw an error even if the input is valid. SubsetDestroy, when called with a non-existent subset name, comes to mind. This is useful behaviour (since you don't need to check whether the subset exists first), but I've recently encountered one which just seems odd.
AssignClientToGroup will not throw an error if the client doesn't exist, if the group doesn't exist, or if both don't exist.
At the very least IMHO that should be added to the documentation. At most, it should throw an error.
A poll has been provided below.
Thoughts?
There are some commands in TI which will not throw an error even if the input is valid. SubsetDestroy, when called with a non-existent subset name, comes to mind. This is useful behaviour (since you don't need to check whether the subset exists first), but I've recently encountered one which just seems odd.
AssignClientToGroup will not throw an error if the client doesn't exist, if the group doesn't exist, or if both don't exist.
At the very least IMHO that should be added to the documentation. At most, it should throw an error.
A poll has been provided below.
Thoughts?