Replace SIZEOF_REGISTER with sizeof(mgreg_t) for consistency with sizeof(gpointer)
[mono.git] / mcs / class / Mono.Data.Sqlite / Mono.Data.Sqlite / SqliteExceptions.cs
1 using System;
2 using System.Data;
3
4 namespace Mono.Data.Sqlite 
5 {
6         // This exception is raised whenever a statement cannot be compiled.
7         public class SqliteSyntaxException : ApplicationException
8         {
9                 public SqliteSyntaxException() : this("An error occurred compiling the Sqlite command.")
10                 {
11                 }
12                 
13                 public SqliteSyntaxException(string message) : base(message)
14                 {
15                 }
16
17                 public SqliteSyntaxException(string message, Exception cause) : base(message, cause)
18                 {
19                 }
20         }
21
22         // This exception is raised whenever the execution
23         // of a statement fails.
24         public class SqliteExecutionException : ApplicationException
25         {
26                 public SqliteExecutionException() : this("An error occurred executing the Sqlite command.")
27                 {
28                 }
29                 
30                 public SqliteExecutionException(string message) : base(message)
31                 {
32                 }
33
34                 public SqliteExecutionException(string message, Exception cause) : base(message, cause)
35                 {
36                 }
37         }
38
39         // This exception is raised whenever Sqlite says it
40         // cannot run a command because something is busy.
41         public class SqliteBusyException : SqliteExecutionException
42         {
43                 public SqliteBusyException() : this("The database is locked.")
44                 {
45                 }
46                 
47                 public SqliteBusyException(string message) : base(message)
48                 {
49                 }
50
51                 public SqliteBusyException(string message, Exception cause) : base(message, cause)
52                 {
53                 }
54         }
55
56 }