diff options
author | Atsushi Eno <atsushieno@veritas-vos-liberabit.com> | 2013-10-17 14:47:45 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@veritas-vos-liberabit.com> | 2013-12-03 11:49:53 +0400 |
commit | 672f575afac77cda5d4e7ee9568809a7ed6f072f (patch) | |
tree | 5e710ce4d7507e59f1c3da3478e8ff8410ab2267 /mcs/class/Microsoft.Build/Microsoft.Build.Exceptions | |
parent | 3deb8d0a85ac66ae6344750cc95e859cc91a987b (diff) |
forgot to commit exception change.
Diffstat (limited to 'mcs/class/Microsoft.Build/Microsoft.Build.Exceptions')
-rw-r--r-- | mcs/class/Microsoft.Build/Microsoft.Build.Exceptions/InvalidProjectFileException.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mcs/class/Microsoft.Build/Microsoft.Build.Exceptions/InvalidProjectFileException.cs b/mcs/class/Microsoft.Build/Microsoft.Build.Exceptions/InvalidProjectFileException.cs index 1db9761782a..224c09c1c69 100644 --- a/mcs/class/Microsoft.Build/Microsoft.Build.Exceptions/InvalidProjectFileException.cs +++ b/mcs/class/Microsoft.Build/Microsoft.Build.Exceptions/InvalidProjectFileException.cs @@ -28,6 +28,7 @@ using System; using System.Runtime.Serialization; +using Microsoft.Build.Construction; namespace Microsoft.Build.Exceptions { @@ -57,6 +58,16 @@ namespace Microsoft.Build.Exceptions : base(message, innerException) { } + internal InvalidProjectFileException (Microsoft.Build.Internal.ILocation start, string message, + string errorSubcategory = null, string errorCode = null, string helpKeyword = null) + : this (null, 0, start != null ? start.Column : 0, 0, 0, message, errorSubcategory, errorCode, helpKeyword) + { + } + internal InvalidProjectFileException (ElementLocation start, ElementLocation end, string message, + string errorSubcategory = null, string errorCode = null, string helpKeyword = null) + : this (start.File, start.Line, start.Column, end != null ? end.Line : 0, end != null ? end.Column : 0, message, errorSubcategory, errorCode, helpKeyword) + { + } public InvalidProjectFileException (string projectFile, int lineNumber, int columnNumber, int endLineNumber, int endColumnNumber, string message, string errorSubcategory, string errorCode, string helpKeyword) |