2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace UnrealBuildTool
|
|
|
|
|
{
|
|
|
|
|
public class ModuleProcessingException : Exception
|
|
|
|
|
{
|
2015-09-24 12:37:21 -04:00
|
|
|
public ModuleProcessingException(UEBuildModule Module, Exception InnerException) :
|
|
|
|
|
base(string.Format("Exception thrown while processing dependent modules of {0}", Module.Name), InnerException)
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
// Our build exceptions do not show the callstack so they are more friendly to users.
|
|
|
|
|
if (!string.IsNullOrEmpty(Message))
|
|
|
|
|
{
|
|
|
|
|
var Result = Message;
|
|
|
|
|
if (InnerException != null)
|
|
|
|
|
{
|
|
|
|
|
Result += '\n' + InnerException.ToString();
|
|
|
|
|
}
|
|
|
|
|
return Result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return base.ToString();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|