swap all errors for exceptions