replace method with reserved word 'catch' => 'catchError'