Removed unnecessary template declaration.

Replaced error_exception with explicit construction for VS2013.