Set error exceptions as config