public static void send ( Throwable throwable , List tags , Map userCustomData ) { RaygunMessage msg = buildMessage ( throwable ) ; if ( msg == null ) { RaygunLogger . e ( "Failed to send RaygunMessage - due to invalid message being built" ) ; return ; } msg . getDetails ( ) . setTags ( RaygunUtils . mergeLists ( RaygunClient . tags , tags ) ) ; msg . getDetails ( ) . setUserCustomData ( RaygunUtils . mergeMaps ( RaygunClient . userCustomData , userCustomData ) ) ; if ( RaygunClient . onBeforeSend != null ) { msg = RaygunClient . onBeforeSend . onBeforeSend ( msg ) ; if ( msg == null ) { return ; } } enqueueWorkForCrashReportingService ( RaygunClient . apiKey , new Gson ( ) . toJson ( msg ) ) ; postCachedMessages ( ) ; }
Sends an exception - type object to Raygun with a list of tags you specify and a set of custom data .