Safer exception-throwing.