SQLite Forum

Math functions for arguments outside the domain should raise exception according to SQL Standard
> Is there a reason why SQLite return NULL instead of raising an error?

You can catch a NULL using coalesce() or IS NULL, deal with it, and keep
processing.  But there is no way to catch an exception.