Question: Can WARNINGs be detected?

Is there any way to detect programmatically that a WARNING has been issued? A method that converts WARNINGs to errors would be acceptable.

Please Wait...