Merging from head
[beagle.git] / beagled / Mono.Data.SqliteClient / SqliteExceptions.cs
blobf0c36eb8f3a777218a85ff948c3533ce7311700a
1 using System;
2 using System.Data;
4 namespace Mono.Data.SqliteClient
6 // This exception is raised whenever a statement cannot be compiled.
7 public class SqliteSyntaxException : ApplicationException
9 public SqliteSyntaxException() : this("An error occurred compiling the Sqlite command.")
13 public SqliteSyntaxException(string message) : base(message)
17 public SqliteSyntaxException(string message, Exception cause) : base(message, cause)
22 // This exception is raised whenever the execution
23 // of a statement fails.
24 public class SqliteExecutionException : ApplicationException
26 public SqliteExecutionException() : this("An error occurred executing the Sqlite command.")
30 public SqliteExecutionException(string message) : base(message)
34 public SqliteExecutionException(string message, Exception cause) : base(message, cause)
39 // This exception is raised whenever Sqlite says it
40 // cannot run a command because something is busy.
41 public class SqliteBusyException : SqliteExecutionException
43 public SqliteBusyException() : this("The database is locked.")
47 public SqliteBusyException(string message) : base(message)
51 public SqliteBusyException(string message, Exception cause) : base(message, cause)