Files
UnrealEngineUWP/Engine/Source/Programs/BuildAgent/Run/Matchers/ExceptionErrorMatcher.cs
2019-09-27 16:21:33 -04:00

27 lines
630 B
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using BuildAgent.Run;
using BuildAgent.Run.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BuildAgent.Matchers
{
[AutoRegister]
class ExceptionErrorMatcher : IErrorMatcher
{
public ErrorMatch Match(ReadOnlyLineBuffer Input)
{
if (Input.IsMatch(@"^\s*Unhandled Exception: "))
{
int MaxOffset = Input.MatchForwards(0, @"^\s*at ");
return new ErrorMatch(ErrorSeverity.Error, ErrorPriority.Low, "Exception", Input, 0, MaxOffset);
}
return null;
}
}
}