internal static void HandleServiceException(TrusonaServiceException serviceException, ErrorHandler errorHandler)
        {
            string error = "A network related error occurred. You should double check that you can connect to Trusona and try your request again";

            errorHandler?.Invoke(serviceException.HttpResponse.StatusCode, serviceException.RequestId);
            throw new TrusonaException(error, serviceException);
        }
Beispiel #2
0
 public TrusonaException(string message, TrusonaServiceException innerException) : base(message, innerException)
 {
     RequestId = innerException.RequestId;
 }