VS Code Show Where Potential Unhandled Exceptions Could Be Thrown

741 views Asked by At

In VS Code, doc block info can be automatically generated that looks something like this:

/**
 * Some sample function.
 * @param Request $request 
 * @return JsonResponse 
 * @throws BadRequestException 
 * @throws BindingResolutionException 
 */
public function deleteUploaded(Request $request)
{
  // Some code
}

I'm assuming the @throws doc info hints at potential exceptions that could be thrown. If so, is there a way to highlight or detect where unhandled exceptions could be thrown in a file in VS Code?

I'd like to be able to more easily find overlooked areas in my code that could potentially throw unhandled exceptions and refactor them.

0

There are 0 answers