diff options
Diffstat (limited to 'Prebuild/src/Core/FatalException.cs')
-rw-r--r-- | Prebuild/src/Core/FatalException.cs | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/Prebuild/src/Core/FatalException.cs b/Prebuild/src/Core/FatalException.cs index 751297a..3487905 100644 --- a/Prebuild/src/Core/FatalException.cs +++ b/Prebuild/src/Core/FatalException.cs | |||
@@ -5,16 +5,16 @@ Copyright (c) 2004-2005 Matthew Holmes (matthew@wildfiregames.com), Dan Moorehea | |||
5 | Redistribution and use in source and binary forms, with or without modification, are permitted | 5 | Redistribution and use in source and binary forms, with or without modification, are permitted |
6 | provided that the following conditions are met: | 6 | provided that the following conditions are met: |
7 | 7 | ||
8 | * Redistributions of source code must retain the above copyright notice, this list of conditions | 8 | * Redistributions of source code must retain the above copyright notice, this list of conditions |
9 | and the following disclaimer. | 9 | and the following disclaimer. |
10 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions | 10 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions |
11 | and the following disclaimer in the documentation and/or other materials provided with the | 11 | and the following disclaimer in the documentation and/or other materials provided with the |
12 | distribution. | 12 | distribution. |
13 | * The name of the author may not be used to endorse or promote products derived from this software | 13 | * The name of the author may not be used to endorse or promote products derived from this software |
14 | without specific prior written permission. | 14 | without specific prior written permission. |
15 | 15 | ||
16 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, | 16 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, |
17 | BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 17 | BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
18 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | 18 | ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
19 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 19 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
20 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 20 | OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
@@ -28,58 +28,58 @@ using System.Runtime.Serialization; | |||
28 | 28 | ||
29 | namespace Prebuild.Core | 29 | namespace Prebuild.Core |
30 | { | 30 | { |
31 | /// <summary> | 31 | /// <summary> |
32 | /// | 32 | /// |
33 | /// </summary> | 33 | /// </summary> |
34 | [Serializable()] | 34 | [Serializable()] |
35 | public class FatalException : Exception | 35 | public class FatalException : Exception |
36 | { | 36 | { |
37 | #region Constructors | 37 | #region Constructors |
38 | 38 | ||
39 | |||
40 | /// <summary> | ||
41 | /// Initializes a new instance of the <see cref="FatalException"/> class. | ||
42 | /// </summary> | ||
43 | public FatalException() | ||
44 | { | ||
45 | } | ||
39 | 46 | ||
40 | /// <summary> | 47 | /// <summary> |
41 | /// Initializes a new instance of the <see cref="FatalException"/> class. | 48 | /// Initializes a new instance of the <see cref="FatalException"/> class. |
42 | /// </summary> | 49 | /// </summary> |
43 | public FatalException() | 50 | /// <param name="format">The format.</param> |
44 | { | 51 | /// <param name="args">The args.</param> |
45 | } | 52 | public FatalException(string format, params object[] args) |
53 | : base(String.Format(format, args)) | ||
54 | { | ||
55 | } | ||
46 | 56 | ||
47 | /// <summary> | 57 | /// <summary> |
48 | /// Initializes a new instance of the <see cref="FatalException"/> class. | 58 | /// Exception with specified string |
49 | /// </summary> | 59 | /// </summary> |
50 | /// <param name="format">The format.</param> | 60 | /// <param name="message">Exception message</param> |
51 | /// <param name="args">The args.</param> | 61 | public FatalException(string message): base(message) |
52 | public FatalException(string format, params object[] args) | 62 | { |
53 | : base(String.Format(format, args)) | 63 | } |
54 | { | ||
55 | } | ||
56 | 64 | ||
57 | /// <summary> | 65 | /// <summary> |
58 | /// Exception with specified string | 66 | /// |
59 | /// </summary> | 67 | /// </summary> |
60 | /// <param name="message">Exception message</param> | 68 | /// <param name="message"></param> |
61 | public FatalException(string message): base(message) | 69 | /// <param name="exception"></param> |
62 | { | 70 | public FatalException(string message, Exception exception) : base(message, exception) |
63 | } | 71 | { |
72 | } | ||
64 | 73 | ||
65 | /// <summary> | 74 | /// <summary> |
66 | /// | 75 | /// |
67 | /// </summary> | 76 | /// </summary> |
68 | /// <param name="message"></param> | 77 | /// <param name="info"></param> |
69 | /// <param name="exception"></param> | 78 | /// <param name="context"></param> |
70 | public FatalException(string message, Exception exception) : base(message, exception) | 79 | protected FatalException(SerializationInfo info, StreamingContext context) : base( info, context ) |
71 | { | 80 | { |
72 | } | 81 | } |
73 | 82 | ||
74 | /// <summary> | 83 | #endregion |
75 | /// | 84 | } |
76 | /// </summary> | ||
77 | /// <param name="info"></param> | ||
78 | /// <param name="context"></param> | ||
79 | protected FatalException(SerializationInfo info, StreamingContext context) : base( info, context ) | ||
80 | { | ||
81 | } | ||
82 | |||
83 | #endregion | ||
84 | } | ||
85 | } | 85 | } |