Use specified level when exception is non-null.