This step by step explains how to create an URI protocol (a scheme) to directly edit a file in Sublime Text 2 from browser (or from the terminal).
Then it explains how to add this kind of link to Symfony2 Exceptions in order to allow opening file directly when an Exception is thrown.
Designed for OSX
Launch AppleScript and save the following script as an Application (name it "Sublime Text 2 URL Launcher"):