

Guía del Kit de desarrollo del software (SDK) › Open API › API Infrastructure › Error Handling › Error Handling Demo Service
Error Handling Demo Service
The CA application comes with an Error Handling Demo service. This service can be found at webroot/API/ErrorHandlingDemo.svc.
The Error Handling Demo service has six error-producing methods, all of which return no value (void):
- CreateNoError() – To test “no error” situations.
- YieldValidatorError(int number) – To test data validation errors.
- DemandViewAlertPermissions() – To test authorization and authentication errors.
- Wait(int seconds) – To test communication errors (timeout).
- YieldEntityExistsFault() – To test business errors.
- ThrowException() – To test all other errors.
These methods create errors that represent all the error types in CA Business Service Insight. These methods are useful when creating and testing a proxy that can expect and handle bounced faults.
Copyright © 2013 CA.
Todos los derechos reservados.
 
|
|