annotate Source/Mapping/MappingException.cs @ 1:8f65451dc28f

Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author cin
date Fri, 28 Mar 2014 01:04:56 +0400
parents f990fcb411a9
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.Mapping
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 /// the execution of the <see cref="Map"/> class and other 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 MappingException : 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="MappingException"/> 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
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
22 /// to a system-supplied message that describes the error,
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
23 /// such as "A Mapping exception has occurred."
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
24 /// </remarks>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
25 public MappingException()
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
26 : base("A Mapping exception has occurred.")
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
27 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
28 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
29
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
30 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
31 /// Initializes a new instance of the <see cref="MappingException"/> class
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
32 /// with the specified error message.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
33 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
34 /// <param name="message">The message to display to the client when the
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
35 /// exception is thrown.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
36 /// <seealso cref="Exception.Message"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
37 public MappingException(string message)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
38 : base(message)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
39 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
40 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
41
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
42 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
43 /// Initializes a new instance of the <see cref="MappingException"/> class
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
44 /// with the specified error message and InnerException property.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
45 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
46 /// <param name="message">The message to display to the client when the
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
47 /// exception is thrown.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
48 /// <param name="innerException">The InnerException, if any, that threw
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
49 /// the current exception.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
50 /// <seealso cref="Exception.Message"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
51 /// <seealso cref="Exception.InnerException"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
52 public MappingException(string message, Exception innerException)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
53 : base(message, innerException)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
54 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
55 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
56
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
57 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
58 /// Initializes a new instance of the <see cref="MappingException"/> class
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
59 /// with the specified InnerException property.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
60 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
61 /// exception is thrown.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
62 /// <param name="innerException">The InnerException, if any, that threw
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
63 /// the current exception.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
64 /// <seealso cref="Exception.InnerException"/>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
65 public MappingException(Exception innerException)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
66 : base(innerException.Message, innerException)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
67 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
68 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
69
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
70 #if !SILVERLIGHT
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
71
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
72 /// <summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
73 /// Initializes a new instance of the <see cref="MappingException"/> class
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
74 /// with serialized data.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
75 /// </summary>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
76 /// <param name="info">The object that holds the serialized object data.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
77 /// <param name="context">The contextual information about the source or
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
78 /// destination.</param>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
79 /// <remarks>This constructor is called during deserialization to
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
80 /// reconstitute the exception object transmitted over a stream.</remarks>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
81 protected MappingException(SerializationInfo info, StreamingContext context)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
82 : base(info,context)
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
83 {
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
84 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
85
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
86 #endif
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
87 }
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
88 }