can't catch exceptions in try..except block lazarus / 9-Editor ---------------------------------------------------------------------- wht244 · 2010-07-16 18:48 i try to use code:Quotetry   sqlc.Open; except   on E: EDatabaseError do     ShowMessage('Błąd połączenia: ' + E.Message);   sqlc.Close; end;but i can't compile it. i receive following errors: QuoteIdentifier not found: "EDatabaseError" ---------------------------------------------------------------------- theo · 2010-07-16 19:05 You can use "Find in Files" on the Lazarus directory to see where things are declared. This is in unit db afaics. ---------------------------------------------------------------------- wht244 · 2010-07-16 19:33 ok, i added unit "db" to uses. now it works. thanks