code: public static CompilationFailedException create(final IMessage[] errors) {
  
          final StringBuilder sb = new StringBuilder();
          sb.append("AJC compiler errors:").append(LINE_SEPARATOR);
          for (final IMessage error : errors) {
              sb.append(error.toString()).append(LINE_SEPARATOR);
          }
  
          return new CompilationFailedException(sb.toString());
      }
docs: Factory method which creates a CompilationFailedException from the supplied AJC IMessages.
  
  @param errors A non-empty array of IMessage objects which
  @return A CompilationFailedException containing a string representation of the supplied errors.