Please read the Spring Web Services documentation.

http://static.springsource.org/sprin...ption-resolver

You can provide a custom
Code:
EndpointExceptionResolver
There are several standard resolvers including one that maps Exception types to faultCode, faultString.

For more sophistication, provide your own implementation of
Code:
resolveException(MessageContext, endpoint, Exception)
Take a look at one of the standard implementations to see how to build the response from the exception and message context.