Determines the view to display based on the exception thrown,
whether an HTTP or CLI request, etc.

@param \Throwable $exception
@param string     $template_path

@return string       The path and filename of the view file to use