pass exception as the second argument