Throw an exception when an unsupported physics object type is given.