Updated error handling example

CCError doesn't define or implement getCode(). Changed the example to reflect its current state.