comparison Source/Data/Sql/SqlException.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2 using System.Runtime.Serialization;
3
4 namespace BLToolkit.Data.Sql
5 {
6 public class SqlException : Exception
7 {
8 public SqlException()
9 : base("A BLToolkit Sql error has occurred.")
10 {
11 }
12
13 public SqlException(string message)
14 : base(message)
15 {
16 }
17
18 [JetBrains.Annotations.StringFormatMethod("message")]
19 public SqlException(string message, params object[] args)
20 : base(string.Format(message, args))
21 {
22 }
23
24 public SqlException(string message, Exception innerException)
25 : base(message, innerException)
26 {
27 }
28
29 public SqlException(Exception innerException)
30 : base(innerException.Message, innerException)
31 {
32 }
33
34 #if !SILVERLIGHT
35
36 protected SqlException(SerializationInfo info, StreamingContext context)
37 : base(info, context)
38 {
39 }
40
41 #endif
42 }
43 }
44