mirror of
https://github.com/claunia/plist-cil.git
synced 2025-12-16 19:14:26 +00:00
Implement PropertyListFormatException
This commit is contained in:
@@ -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>
|
2015-02-18 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* NSObject.cs:
|
* NSObject.cs:
|
||||||
|
|||||||
45
plist-cil/PropertyListFormatException.cs
Normal file
45
plist-cil/PropertyListFormatException.cs
Normal 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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -42,6 +42,7 @@
|
|||||||
<Compile Include="NSArray.cs" />
|
<Compile Include="NSArray.cs" />
|
||||||
<Compile Include="NSData.cs" />
|
<Compile Include="NSData.cs" />
|
||||||
<Compile Include="NSDictionary.cs" />
|
<Compile Include="NSDictionary.cs" />
|
||||||
|
<Compile Include="PropertyListFormatException.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||||
<ProjectExtensions>
|
<ProjectExtensions>
|
||||||
|
|||||||
Reference in New Issue
Block a user