[engine] Add public hasException() method