Why I can't catch the exception?
Piotrek via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 5 22:25:38 PDT 2016
On Sunday, 5 June 2016 at 18:20:12 UTC, Era Scarecrow wrote:
> The assertion is being thrown in the storage.d and
> backtracking it basically points to line 115 (usersCollection),
> so am going to guess based on error messages alone that you are
> passing a struct/class that doesn't match inputs that it is
> expecting for one of the elements it needs to store.
>
> So my advice is to look at the User struct/class, and then
> look at the DB's User table. But this is just a far thrown
> guess at the problem.
You are very close. This is just a limitation of the current
database code which can only handle the simplest structs.
https://gitlab.com/PiotrekDlang/DraftLib/issues/4
Piotrek
More information about the Digitalmars-d-learn
mailing list