Add onWillThrowError