root/trunk/AprSharp/dev/src/AprInvalidOperationException.cs

Revision 59, 2.7 kB (checked in by DenisG, 4 years ago)

[AprSharp] Cosmetic. License region.

  • Property svn:eol-style set to native
Line 
1 //  AprSharp, a wrapper library around the Apache Portable Runtime Library
2 #region Copyright (C) 2004 SOFTEC sa.
3 //
4 //  This library is free software; you can redistribute it and/or
5 //  modify it under the terms of the GNU Lesser General Public
6 //  License as published by the Free Software Foundation; either
7 //  version 2.1 of the License, or (at your option) any later version.
8 //
9 //  This library is distributed in the hope that it will be useful,
10 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 //  Lesser General Public License for more details.
13 //
14 //  You should have received a copy of the GNU Lesser General Public
15 //  License along with this library; if not, write to the Free Software
16 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 //
18 //  Sources, support options and lastest version of the complete library
19 //  is available from:
20 //              http://www.softec.st/AprSharp
21 //             
22 //
23 //  Initial authors :
24 //              Denis Gervalle
25 //              Olivier Desaive
26 #endregion
27 //
28 using System;
29 using System.Runtime.Serialization;
30                                                                                                                                  
31 namespace Softec.AprSharp
32 {
33         [Serializable]
34         public class AprInvalidOperationException : AprException
35         {
36                 const int Result = unchecked ((int)0xA0651509);
37                                                                                                                                  
38                 // Constructors
39                 public AprInvalidOperationException ()
40                         : base ("The requested operation could be performed.")
41                 {
42                         HResult = Result;
43                 }
44                                                                                                                                  
45                 public AprInvalidOperationException (string message)
46                         : base (message)
47                 {
48                         HResult = Result;
49                 }
50                                                                                                                                  
51                 public AprInvalidOperationException (string message, Exception innerException)
52                         : base (message, innerException)
53                 {
54                         HResult = Result;
55                 }
56                                                                                                                                  
57         public AprInvalidOperationException(int apr_status)
58                : base ( apr_status )
59         {
60         }
61        
62         public AprInvalidOperationException(int apr_status, Exception innerException)
63                : base ( apr_status, innerException )
64         {
65         }
66        
67                 protected AprInvalidOperationException (SerializationInfo info, StreamingContext context)
68                         : base (info, context)
69                 {
70                 }
71         }
72 }
Note: See TracBrowser for help on using the browser.