Have you tried @SERROR? See manual.