code: protected void writeException(final AbstractHessianOutput out, Exception ex)
  			throws IOException {
  		OutputStream os = new ByteArrayOutputStream();
  		ex.printStackTrace(new PrintStream(os));
  		out.writeFault(ex.getClass().toString(), os.toString(), null);
  	}
docs: Writes Exception information to Hessian Output.
  
  @param out
  Hessian Output
  @param ex
  Exception
  @throws java.io.IOException
  If i/o error occur