Add error handling to fdb_raw

Throw exception if not given an fdb_handle.