From 6f8d344502e799c64f007d725d97da464979ebbe Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 18 Feb 2015 03:40:56 +0000 Subject: [PATCH] Implement PropertyListFormatException --- plist-cil/ChangeLog | 6 ++++ plist-cil/PropertyListFormatException.cs | 45 ++++++++++++++++++++++++ plist-cil/plist-cil.csproj | 1 + 3 files changed, 52 insertions(+) create mode 100644 plist-cil/PropertyListFormatException.cs diff --git a/plist-cil/ChangeLog b/plist-cil/ChangeLog index f4a71cb..713eb06 100644 --- a/plist-cil/ChangeLog +++ b/plist-cil/ChangeLog @@ -1,3 +1,9 @@ +2015-02-18 Natalia Portillo + + * plist-cil.csproj: + * PropertyListFormatException.cs: + Implement PropertyListFormatException + 2015-02-18 Natalia Portillo * NSObject.cs: diff --git a/plist-cil/PropertyListFormatException.cs b/plist-cil/PropertyListFormatException.cs new file mode 100644 index 0000000..b5cbbee --- /dev/null +++ b/plist-cil/PropertyListFormatException.cs @@ -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 +{ + /// + /// A PropertyListFormatException is thrown by the various property list format parsers + /// when an error in the format of the given property list is encountered. + /// + /// @author Daniel Dreibrodt + public class PropertyListFormatException : Exception + { + /// + /// Creates a new exception with the given message. + /// + /// A message containing information about the nature of the exception. + public PropertyListFormatException(string message) : base (message) + { + } + } +} + diff --git a/plist-cil/plist-cil.csproj b/plist-cil/plist-cil.csproj index b9dfc9c..8a8f79a 100644 --- a/plist-cil/plist-cil.csproj +++ b/plist-cil/plist-cil.csproj @@ -42,6 +42,7 @@ +