tryCatch.W.E function

tryCatch both warnings (with value) and errors