Allow previous exception to be null.