Coverage Report - org.boretti.drools.integration.drools5.exceptions.CompilationDroolsError
 
Classes in this File Line Coverage Branch Coverage Complexity
CompilationDroolsError
52 %
11/21
N/A
1
 
 1  
 /*
 2  
     Drools5 Integration Helper
 3  
     Copyright (C) 2009  Mathieu Boretti mathieu.boretti@gmail.com
 4  
 
 5  
     This program is free software: you can redistribute it and/or modify
 6  
     it under the terms of the GNU General Public License as published by
 7  
     the Free Software Foundation, either version 3 of the License, or
 8  
     (at your option) any later version.
 9  
 
 10  
     This program is distributed in the hope that it will be useful,
 11  
     but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  
     GNU General Public License for more details.
 14  
 
 15  
     You should have received a copy of the GNU General Public License
 16  
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 17  
 
 18  
  */
 19  
 package org.boretti.drools.integration.drools5.exceptions;
 20  
 
 21  
 import org.drools.compiler.PackageBuilderErrors;
 22  
 
 23  
 /**
 24  
  * This is a Compilation of drools problem in Drools5-Integration-Helper.
 25  
  * 
 26  
  * @author mbo
 27  
  *
 28  
  */
 29  
 public class CompilationDroolsError extends DroolsError {
 30  
         
 31  
         private PackageBuilderErrors packageBuilderErrors;
 32  
 
 33  
         /**
 34  
          * 
 35  
          */
 36  
         private static final long serialVersionUID = 4678629472128016491L;
 37  
 
 38  
         public CompilationDroolsError() {
 39  2
                 super();
 40  2
         }
 41  
 
 42  
         public CompilationDroolsError(String message, Throwable cause) {
 43  2
                 super(message, cause);
 44  2
         }
 45  
 
 46  
         public CompilationDroolsError(String message) {
 47  2
                 super(message);
 48  2
         }
 49  
 
 50  
         public CompilationDroolsError(Throwable cause) {
 51  2
                 super(cause);
 52  2
         }
 53  
         
 54  
         public CompilationDroolsError(PackageBuilderErrors packageBuilderErrors) {
 55  0
                 super();
 56  0
                 this.packageBuilderErrors=packageBuilderErrors;
 57  0
         }
 58  
 
 59  
         public CompilationDroolsError(String message, Throwable cause,PackageBuilderErrors packageBuilderErrors) {
 60  0
                 super(message, cause);
 61  0
                 this.packageBuilderErrors=packageBuilderErrors;
 62  0
         }
 63  
 
 64  
         public CompilationDroolsError(String message,PackageBuilderErrors packageBuilderErrors) {
 65  4
                 super(message);
 66  4
                 this.packageBuilderErrors=packageBuilderErrors;
 67  4
         }
 68  
 
 69  
         public CompilationDroolsError(Throwable cause,PackageBuilderErrors packageBuilderErrors) {
 70  0
                 super(cause);
 71  0
                 this.packageBuilderErrors=packageBuilderErrors;
 72  0
         }
 73  
         
 74  
         public org.drools.compiler.DroolsError[] getCompilationErrors() {
 75  0
                 return packageBuilderErrors.getErrors();
 76  
         }
 77  
 
 78  
 }