Prototypes debugged. Raising exceptions on template Error