Slight modification to template
Replaced Error with Exception, cause Error don't exist