public static Throwable generateIncidentV2WithException ( SFSession session , Throwable exc , String jobId , String requestId ) { new Incident ( session , exc , jobId , requestId ) . trigger ( ) ; return exc ; }
Makes a V2 incident object and triggers ir effectively reporting the given exception to GS and possibly to crashmanager