1. A computer adapted to detect an attempted exploit of a vulnerability of an application executed by the computer, the application having a native robust function having associated native error handling functionality, comprising: a non-transitory computer-readable storage medium having executable computer program instructions embodied therein comprising: an analysis module configured to determine whether malicious code is attempting to exploit the vulnerability of the application; an exception generation module configured to throw a security violation exception that is not native to the application responsive to the determination that malicious code is attempting to exploit the vulnerability; and a function wrapping module configured to wrap the native robust function of the application with an exception handler configured to catch the security violation exception and to activate the native error handling functionality associated with the robust function in response to catching the security violation exception; and a processor for executing the computer program instructions.