diff options
author | Zoltan Varga <vargaz@gmail.com> | 2006-03-09 22:10:21 +0300 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2006-03-09 22:10:21 +0300 |
commit | ce5f4673fa80e413542a8528adf7ebc6a7cf5d31 (patch) | |
tree | d0c081f4dd0334643d25cd3076dafdbce7957d1c /mcs/class/System/System.ComponentModel.Design.Serialization | |
parent | 054e70d681ed002a30eaa87e81b913c67a17a309 (diff) |
2006-03-09 Zoltan Varga <vargaz@gmail.com>
* CodeDomSerializerException.cs: New file.
svn path=/trunk/mcs/; revision=57742
Diffstat (limited to 'mcs/class/System/System.ComponentModel.Design.Serialization')
-rw-r--r-- | mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System/System.ComponentModel.Design.Serialization/CodeDomSerializerException.cs | 61 |
2 files changed, 65 insertions, 0 deletions
diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog b/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog index 4e4537c7911..ed372ceb4dc 100644 --- a/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog +++ b/mcs/class/System/System.ComponentModel.Design.Serialization/ChangeLog @@ -1,3 +1,7 @@ +2006-03-09 Zoltan Varga <vargaz@gmail.com> + + * CodeDomSerializerException.cs: New file. + 2005-10-18 Sebastien Pouliot <sebastien@ximian.com> * InstanceDescriptor.cs: Added CAS permissions (unrestricted at class diff --git a/mcs/class/System/System.ComponentModel.Design.Serialization/CodeDomSerializerException.cs b/mcs/class/System/System.ComponentModel.Design.Serialization/CodeDomSerializerException.cs new file mode 100644 index 00000000000..6c19230fa75 --- /dev/null +++ b/mcs/class/System/System.ComponentModel.Design.Serialization/CodeDomSerializerException.cs @@ -0,0 +1,61 @@ +// +// System.ComponentModel.Design.Serialization.CodeDomSerializerException.cs +// +// Author: +// Zoltan Varga (vargaz@gmail.com) +// +// Copyright (C) 2004-2005 Novell (http://www.novell.com) +// +// 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.CodeDom; +using System.Runtime.Serialization; + +namespace System.ComponentModel.Design.Serialization { + +public class CodeDomSerializerException : SystemException +{ + private CodeLinePragma linePragma; + + public CodeDomSerializerException (Exception ex, CodeLinePragma linePragma) + : base (String.Empty, ex) { + + this.linePragma = linePragma; + } + + public CodeDomSerializerException (String message, CodeLinePragma linePragma) + : base (message) { + + this.linePragma = linePragma; + } + + [MonoTODO] + protected CodeDomSerializerException (SerializationInfo info, StreamingContext context) { + throw new NotImplementedException (); + } + + public CodeLinePragma LinePragma { + get { + return linePragma; + } + } +} +} |