} catch ( XMLStreamException e ) { LOG.debug( e.getMessage(), e ); sendSoapException( soapDoc, factory, response, new OWSException( e.getMessage(), e, NO_APPLICABLE_CODE ), request, version ); } catch ( OWSException e ) { LOG.debug( e.getMessage(), e ); sendSoapException( soapDoc, factory, response, e, request, version ); } catch ( IOException e ) { LOG.debug( e.getMessage(), e ); sendSoapException( soapDoc, factory, response, new OWSException( e.getMessage(), e, NO_APPLICABLE_CODE ), request, version ); } catch ( MissingParameterException e ) { LOG.debug( e.getMessage(), e ); sendSoapException( soapDoc, factory, response, new OWSException( e.getMessage(), e, MISSING_PARAMETER_VALUE ), request, version ); } catch ( InvalidParameterValueException e ) { LOG.debug( e.getMessage(), e ); sendSoapException( soapDoc, factory, response, new OWSException( e.getMessage(), e, INVALID_PARAMETER_VALUE ), request, version ); } catch ( FailedAuthentication e ) { LOG.debug( e.getMessage(), e ); sendSoapException( soapDoc, factory, response, new OWSException( e.getMessage(), e, NO_APPLICABLE_CODE ), request, version ); } catch ( Throwable t ) { String msg = "An unexpected error occured: " + t.getMessage(); LOG.debug( msg, t ); sendSoapException( soapDoc, factory, response, new OWSException( msg, t, NO_APPLICABLE_CODE ), request, version );