code: public Fault buildFault(Throwable ex) {
  		Fault fault;
  		int stacktracelength = configuration.getStacktracelength();
  		if (stacktracelength == 0 || logger.isDebugEnabled()) {
  			logger.error("Invocation failed", ex);
  		}
  		fault = new Fault(ex, stacktracelength);
  		return fault;
  	}
docs: Build an fault Object from exception with stacktrace length from configuration
  @param ex
  @return