Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package javassist.compiler;
 /*    */ 
 /*    */ import javassist.CannotCompileException;
 /*    */ import javassist.NotFoundException;
 /*    */ 
 /*    */ public class CompileError extends Exception
 /*    */ {
 /*    */   private Lex lex;
 /*    */   private String reason;
/*    */ 
/*    */   public CompileError(String sLex l)
/*    */   {
/* 26 */     this.reason = s;
/* 27 */     this.lex = l;
/*    */   }
/*    */ 
/*    */   public CompileError(String s) {
/* 31 */     this.reason = s;
/* 32 */     this.lex = null;
/*    */   }
/*    */ 
/*    */   public CompileError(CannotCompileException e) {
/* 36 */     this(e.getReason());
/*    */   }
/*    */ 
/*    */   public CompileError(NotFoundException e) {
/* 40 */     this("cannot find " + e.getMessage());
/*    */   }
/*    */   public Lex getLex() {
/* 43 */     return this.lex;
/*    */   }
/*    */   public String getMessage() {
/* 46 */     return this.reason;
/*    */   }
/*    */ 
/*    */   public String toString() {
/* 50 */     return "compile error: " + this.reason;
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     javassist.compiler.CompileError
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X