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,50 @@
|
||||
// ---------------------------------------------------------------------------
|
||||
// Copyright (C) 2006 Microsoft Corporation All Rights Reserved
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#define CODE_ANALYSIS
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Security.Permissions;
|
||||
|
||||
namespace System.Workflow.Activities.Rules
|
||||
{
|
||||
// RuleBuilderSyntaxException contains syntax error information in cases where the RuleBuilder
|
||||
// failed to parse the expression.
|
||||
[Serializable]
|
||||
[SuppressMessage("Microsoft.Design", "CA1064:ExceptionsShouldBePublic")]
|
||||
internal class RuleSyntaxException : SystemException
|
||||
{
|
||||
private int position;
|
||||
private int errorNumber;
|
||||
|
||||
#region Constructors
|
||||
internal RuleSyntaxException()
|
||||
{
|
||||
}
|
||||
|
||||
internal RuleSyntaxException(int errorNumber, string message, int position)
|
||||
: base(message)
|
||||
{
|
||||
this.errorNumber = errorNumber;
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
|
||||
private RuleSyntaxException(SerializationInfo serializeInfo, StreamingContext context)
|
||||
: base(serializeInfo, context)
|
||||
{
|
||||
}
|
||||
#endregion
|
||||
|
||||
internal int Position
|
||||
{
|
||||
get { return position; }
|
||||
}
|
||||
|
||||
internal int ErrorNumber
|
||||
{
|
||||
get { return errorNumber; }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user