IdInvalidException is thrown whenever a resource id is not made up of a valid set of characters.
The invalid id is available as part of the exception.