The TYPE constant is more of an internal protocol
detail and is not the best constant to use in exceptions
that tell the received data is invalid, instead just
prefer and use the class name instead which is more
relevant than the TYPE constant.
Change-Id: I60652a149eb1a3c3d8523544c355044bbd6fec94