Skip to content

Commit

Permalink
Replace catch (PipelineException e) with catch (Exception e).
Browse files Browse the repository at this point in the history
  • Loading branch information
drasmart committed Oct 2, 2024
1 parent 743b59a commit dc06bb5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ protected virtual string BuildJson(IFlowData data, PipelineConfig config, bool r
{
sequenceNumber = GetSequenceNumber(data);
}
catch (PipelineException e)
catch (Exception e)
{
if (requireSequenceNumber)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private void ServeContent(IContextAdapter context, IFlowData flowData, ContentTy
{
pipelineEvidenceKeyFilter = _pipeline.EvidenceKeyFilter;
}
catch (PipelineException ex)
catch (Exception ex)
{
_logger?.LogError(ex, $"Failed to get {nameof(_pipeline.EvidenceKeyFilter)} from {nameof(_pipeline)}");
hadFailures = true;
Expand Down Expand Up @@ -257,7 +257,7 @@ private void ServeContent(IContextAdapter context, IFlowData flowData, ContentTy
{
jsonData = flowData.GetFromElement(jsonElement);
}
catch (PipelineException ex)
catch (Exception ex)
{
_logger?.LogError(ex, "Failed to get data from {flowElementType}", jsonElement.GetType().Name);
jsonData = jsonElement.GetFallbackResponse(flowData);
Expand All @@ -279,7 +279,7 @@ private void ServeContent(IContextAdapter context, IFlowData flowData, ContentTy
{
jsData = flowData.GetFromElement(jsElement);
}
catch (PipelineException ex)
catch (Exception ex)
{
_logger?.LogError(ex, "Failed to get data from {flowElementType}", jsElement.GetType().Name);
jsData = jsElement.GetFallbackResponse(flowData, GetJsonData());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public static IFlowData Process(HttpRequest request)
{
filler = new EvidenceFiller(flowData);
}
catch (PipelineException ex)
catch (Exception ex)
{
flowData.AddError(ex, null);
throw;
Expand Down

0 comments on commit dc06bb5

Please sign in to comment.