5 Ways To Trap Errors In Custom Templates