Removed unused var
Print exception message
Created new exception for syntax errors
Adapted to new exception constructor
Accept empty constructor
Update message
Add an exception for templates and for file that already exist
Handle DebianTemplateError
Throw error if file already exists
Test for exceptions