You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@@ -0,0 +1,65 @@
|
||||
//------------------------------------------------------------
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Build.Tasks.Xaml
|
||||
{
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
[Serializable]
|
||||
class LoggableException : Exception
|
||||
{
|
||||
int lineNumber;
|
||||
int linePosition;
|
||||
|
||||
public LoggableException()
|
||||
{
|
||||
}
|
||||
|
||||
public int LineNumber
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.lineNumber;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.lineNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
public int LinePosition
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.linePosition;
|
||||
}
|
||||
set
|
||||
{
|
||||
this.linePosition = value;
|
||||
}
|
||||
}
|
||||
|
||||
public LoggableException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
public LoggableException(Exception innerException)
|
||||
: base(innerException.Message, innerException)
|
||||
{
|
||||
}
|
||||
|
||||
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
||||
{
|
||||
base.GetObjectData(info, context);
|
||||
|
||||
if (info != null)
|
||||
{
|
||||
info.AddValue("lineNumber", this.lineNumber);
|
||||
info.AddValue("columnNumber", this.linePosition);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user