Add `isError` support.