added exception type parameter to visitors