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
error code returned from the native core SQLite library.  In the
case you mention, the exception is technically correct even though
it may seem counterintuitive at first glance.

--
Joe Mistachkin

Hi Joe,
thank you for the reply.
I understand the point. But the encryption subsystem should be smart 
enough to prevent passing an encrypted stream to the native SQLite 
library (I am assuming that the encryption subsystem operates between 
the SQLite core library and the OS).

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[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
SQLiteErrorCode.Auth or the Exception is more specialized?

Thank you
Marco
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users