code: public ExtDirectResponseBuilder setException(Exception exception) {
  		unsuccessful();
  
  		WebApplicationContext ctx = RequestContextUtils
  				.findWebApplicationContext(this.request);
  		Configuration configuration;
  		try {
  			configuration = ctx.getBean(Configuration.class);
  		}
  		catch (NoSuchBeanDefinitionException e) {
  			configuration = new Configuration();
  		}
  
  		this.extDirectResponse.setType("exception");
  		this.extDirectResponse.setMessage(configuration.getMessage(exception));
  
  		if (configuration.isSendStacktrace()) {
  			this.extDirectResponse.setWhere(ExtDirectSpringUtil.getStackTrace(exception));
  		}
  		else {
  			this.extDirectResponse.setWhere(null);
  		}
  
  		return this;
  	}
docs: Creates an "exception" response. Calls {@link ExtDirectResponse#setType(String)}
  with a value of "exception". Calls {@link ExtDirectResponse#setMessage(String)} and
  {@link ExtDirectResponse#setWhere(String)} according to the {@link Configuration}.
  
  This is a method primarily used for implementations of
  {@link HandlerExceptionResolver}.
  
  @param exception the exception that was thrown.
  @return this instance