redo old exception raising syntax