annotate Source/Validation/ValidationException.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
1 using System;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
2 using System.Runtime.Serialization;
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
3
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
4 namespace BLToolkit.Validation
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
5 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
6 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
7 /// Defines the base class for the namespace exceptions.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
8 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
9 /// <remarks>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
10 /// This class is the base class for exceptions that may occur during
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
11 /// execution of the namespace members.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
12 /// </remarks>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
13 [Serializable]
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
14 public class ValidationException : Exception
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
15 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
16 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
17 /// Initializes a new instance of the <see cref="ValidationException"/> class.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
18 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
19 /// <remarks>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
20 /// This constructor initializes the <see cref="Exception.Message"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
21 /// property of the new instance such as "A Validation exception has occurred."
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
22 /// </remarks>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
23 public ValidationException()
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
24 : base("A Validation exception has occurred.")
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
25 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
26 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
27
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
28 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
29 /// Initializes a new instance of the <see cref="ValidationException"/> class
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
30 /// with the specified error message.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
31 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
32 /// <param name="message">The message to display to the client when the
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
33 /// exception is thrown.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
34 /// <seealso cref="Exception.Message"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
35 public ValidationException(string message)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
36 : base(message)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
37 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
38 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
39
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
40 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
41 /// Initializes a new instance of the <see cref="ValidationException"/> class
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
42 /// with the specified error message and InnerException property.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
43 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
44 /// <param name="message">The message to display to the client when the
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
45 /// exception is thrown.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
46 /// <param name="innerException">The InnerException, if any, that threw
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
47 /// the current exception.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
48 /// <seealso cref="Exception.Message"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
49 /// <seealso cref="Exception.InnerException"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
50 public ValidationException(string message, Exception innerException)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
51 : base(message, innerException)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
52 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
53 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
54
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
55 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
56 /// Initializes a new instance of the <see cref="ValidationException"/> class
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
57 /// with the specified InnerException property.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
58 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
59 /// <param name="innerException">The InnerException, if any, that threw
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
60 /// the current exception.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
61 /// <seealso cref="Exception.Message"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
62 /// <seealso cref="Exception.InnerException"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
63 public ValidationException(Exception innerException)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
64 : base(innerException.Message, innerException)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
65 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
66 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
67
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
68 #if !SILVERLIGHT
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
69
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
70 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
71 /// Initializes a new instance of the <see cref="ValidationException"/> class
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
72 /// with serialized data.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
73 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
74 /// <param name="info">The object that holds the serialized object data.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
75 /// <param name="context">The contextual information about the source or
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
76 /// destination.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
77 /// <remarks>This constructor is called during deserialization to
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
78 /// reconstitute the exception object transmitted over a stream.</remarks>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
79 protected ValidationException(SerializationInfo info, StreamingContext context)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
80 : base(info, context)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
81 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
82 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
83
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
84 #endif
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
85 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
86 }