+/*
+ * Copyright(c) 2021 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
using System;
using System.ComponentModel;
using System.Diagnostics;
[EditorBrowsable(EditorBrowsableState.Never)]
public class XamlParseException : Exception
{
- readonly string _unformattedMessage;
+ readonly string unformattedMessage;
static private StringBuilder GetStackInfo()
{
[EditorBrowsable(EditorBrowsableState.Never)]
public XamlParseException(string message) : base(message)
{
- _unformattedMessage = message;
+ unformattedMessage = message;
}
/// <summary> Initializes a new instance with message and inner exception. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public XamlParseException(string message, Exception innerException = null) : base(message, innerException)
{
- _unformattedMessage = message;
+ unformattedMessage = message;
}
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public XamlParseException(string message, IXmlLineInfo xmlInfo, Exception innerException = null) : base(FormatMessage(message + GetStackInfo(), xmlInfo), innerException)
{
- _unformattedMessage = message;
+ unformattedMessage = message;
XmlInfo = xmlInfo;
}
internal string UnformattedMessage
{
- get { return _unformattedMessage ?? Message; }
+ get { return unformattedMessage ?? Message; }
}
static string FormatMessage(string message, IXmlLineInfo xmlinfo)