[pt::Builder] add error handling
Merge pull request #96 from errordeveloper/pt_error_handling

Added error handling in PT::Builder