A method and a system for dynamically specifying exceptions and exception
handlers for an application written in any computer language, which has
exception handling facility, are described. The present decouples the
exception handling logic from the application and thereby can be used to
alter the behavior of the program/module/application as well as to define
new types of exceptions at runtime. The decoupling of the exception
handler logic eliminates the language dependence of the application and
further helps in customizing the behavior of the application when they
are being deployed in new environments. Moreover dynamic exception
handling is not operating system dependent.