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 ( ) ) ; }
Factory method which creates a CompilationFailedException from the supplied AJC IMessages .