Error Handling --Beta Release--
When an error occurs during request processing, the API will return the following:
- faultCode - error code
- faultString - short description of error
- faultDetail - detailed description of error
The following faultCode ranges apply to the Urchin Data API Services:
faultCode |
faultString |
10001 |
Internal server error |
10002 |
Invalid request/Unknown SOAP action |
10003 |
Required field is missing |
10004 |
Malformed field |
10005 |
Service business logic error |
Data API Logging
Urchin allows logging of all Data API events. Events are logged (depending upon the log level value) and stored in the following file:
<urchin_home>/var/api.log
To set the Data API log level, edit the Axis2LogLevel value in the urchinwebd.conf.template file.
-
crit - Log critical errors only
-
error - Log errors and above
-
warn - Log warnings and above
-
info - Log info and above
-
debug - Log debug and above
-
trace - Log trace messages
Note: Restart the Urchin Web Server after changing the log level value.