* myClientStub.someMethod.errorOnCall = createErroringStub(error); * * // elsewhere * * myClientStub.someMethod.errorOnCall(); *
* myClientStub.someMethod.respondWithError = createRespondingStub(errorResponse); * * // elsewhere * * myClientStub.someMethod.respondWithError(); *