Implement PropertyListFormatException

This commit is contained in:
2015-02-18 03:40:56 +00:00
parent a8ca6545b8
commit 6f8d344502
3 changed files with 52 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2015-02-18 Natalia Portillo <claunia@claunia.com>
* plist-cil.csproj:
* PropertyListFormatException.cs:
Implement PropertyListFormatException
2015-02-18 Natalia Portillo <claunia@claunia.com>
* NSObject.cs:

View File

@@ -0,0 +1,45 @@
// plist-cil - An open source library to parse and generate property lists for .NET
// Copyright (C) 2015 Natalia Portillo
//
// This code is based on:
// plist - An open source library to parse and generate property lists
// Copyright (C) 2014 Daniel Dreibrodt
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
using System;
namespace Claunia.PropertyList
{
/// <summary>
/// A PropertyListFormatException is thrown by the various property list format parsers
/// when an error in the format of the given property list is encountered.
/// </summary>
/// @author Daniel Dreibrodt
public class PropertyListFormatException : Exception
{
/// <summary>
/// Creates a new exception with the given message.
/// </summary>
/// <param name="message">A message containing information about the nature of the exception.</param>
public PropertyListFormatException(string message) : base (message)
{
}
}
}

View File

@@ -42,6 +42,7 @@
<Compile Include="NSArray.cs" />
<Compile Include="NSData.cs" />
<Compile Include="NSDictionary.cs" />
<Compile Include="PropertyListFormatException.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>