Re: [sqlite] System.Data.SQLite Exception with wrong password

2011-10-08 Thread Marco Cosentino
On 08/10/2011 01:24, Joe Mistachkin wrote: Marco Cosentino wrote: The ErrorCode is set to "NotADatabase". Wouldn't it more correct if this code is set to something like SQLiteErrorCode.Auth or the Exception is more specialized? The exceptions thrown by System.Data.SQLite reflect the underlying

Re: [sqlite] System.Data.SQLite Exception with wrong password

2011-10-07 Thread Joe Mistachkin
Marco Cosentino wrote: > > The ErrorCode is set to "NotADatabase". > Wouldn't it more correct if this code is set to something like > SQLiteErrorCode.Auth or the Exception is more specialized? > The exceptions thrown by System.Data.SQLite reflect the underlying error code returned from the nati

[sqlite] System.Data.SQLite Exception with wrong password

2011-10-06 Thread Marco Cosentino
Hi, I'm using a password protected database. When I type the wrong password in my app the resulting Exception is a SQLiteException with this message: "File opened is not a database file". The ErrorCode is set to "NotADatabase". Wouldn't it more correct if this code is set to something like SQLiteE