This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Would it be possible to have a hint on the left hand side of the editor (where the warning triangles / light bulbs appear) for the following: class example { /** * * @throws Exception */ public function throwing() { throw new Exception(); } public function catch() { (hint wrap this in a try catch) $this->throwing(); } } clicking the hint/light bulb would then create: try { $this->throwing(); } catch ( Exception $e ) { } It would be nice if 'Exception' from the above try/catch is populated with the correct exception class from the 'throwing()' method doc block. A really nice solution would be if multiple @throws are defined then chained catch's would be generated based on the order defined in the doc block: @throws PDOException @throws TestException @throws Exception try { $this->throwing(); } catch ( PDOException $e ) { } catch ( TestException $e ) { } catch ( Exception $e ) { }