Files
UnrealEngineUWP/Engine/Source/Programs/UnrealBuildTool/System/BuildException.cs
ben marsh cf4a18955c Copying //UE4/Dev-Build to Dev-Main (//UE4/Dev-Main)
#rb none
#rnx

#ROBOMERGE-OWNER: ryan.gerleve
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 4718806 in //UE4/Main/...
#ROBOMERGE-BOT: ENGINE (Main -> Dev-Networking)

[CL 4718825 by ben marsh in Dev-Networking branch]
2019-01-14 12:15:37 -05:00

64 lines
1.8 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Text;
namespace UnrealBuildTool
{
/// <summary>
/// Base class for exceptions thrown by UBT
/// </summary>
public class BuildException : Exception
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="Message">The error message to display.</param>
public BuildException(string Message)
: base(Message)
{
}
/// <summary>
/// Constructor
/// </summary>
/// <param name="InnerException">An inner exception to wrap</param>
/// <param name="Message">The error message to display.</param>
public BuildException(Exception InnerException, string Message)
: base(Message, InnerException)
{
}
/// <summary>
/// Constructor
/// </summary>
/// <param name="Format">Formatting string for the error message</param>
/// <param name="Arguments">Arguments for the formatting string</param>
public BuildException(string Format, params object[] Arguments)
: base(String.Format(Format, Arguments))
{
}
/// <summary>
/// Constructor which wraps another exception
/// </summary>
/// <param name="InnerException">The inner exception being wrapped</param>
/// <param name="Format">Format for the message string</param>
/// <param name="Arguments">Format arguments</param>
public BuildException(Exception InnerException, string Format, params object[] Arguments)
: base(String.Format(Format, Arguments), InnerException)
{
}
/// <summary>
/// Returns the string representing the exception. Our build exceptions do not show the callstack since they are used to report known error conditions.
/// </summary>
/// <returns>Message for the exception</returns>
public override string ToString()
{
return Message;
}
}
}