Exceptions in Java is a contract, if you don't handle it, you must mark the method with such exception and it will be checked by the compiler for consistency. Exceptions in Object Pascal is not a contract, i.e. the compiler doesn't note and check what possible exceptions may be raised in a method body, therefore such a feature is not possible from compiler POV. There is possibility, but that needs (probably huge) improvements to the codetools. Surrounding the code with try-finally / try-except, however, is available via refactoring context menu. Just select a block, open context menu->refactoring->pick whatever you want to surround the code with.