Exception in Volt

Hi. Is there any way to catch Exception inside compiled volt files? I get notices when I have trouble with server and my variables are undefined. In this case I want to show 5xx page.