// // // // // $Revision$ // using System; using ICSharpCode.Core; using SharpQuery.SchemaClass; using System.Runtime.Serialization; namespace SharpQuery.Exceptions { [Serializable()] public class ConnectionStringException : Exception { public ConnectionStringException() : base(StringParser.Parse("${res:SharpQuery.Error.WrongConnectionString}")) { } public ConnectionStringException(ISchemaClass schema) : base(StringParser.Parse("${res:SharpQuery.Error.WrongConnectionString}") + "\n\r" + "-----------------" + "\n\r" + "(" + schema.Connection.ConnectionString + ")" + "\n\r" + "(" + schema.Connection.Name + ")" ) { } public ConnectionStringException(string message) : base(StringParser.Parse("${res:SharpQuery.Error.WrongConnectionString}") + "\n\r" + "-----------------" + "\n\r" + message) { } public ConnectionStringException(string message, Exception innerException) : base(message, innerException) { } protected ConnectionStringException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }