Fixed generics in exception message