org.drools.compiler
Class DroolsError

java.lang.Object
  extended by org.drools.compiler.DroolsError
All Implemented Interfaces:
org.drools.builder.KnowledgeBuilderError
Direct Known Subclasses:
ActionError, DescrBuildError, DialectError, ExpanderException, FactTemplateError, FieldTemplateError, FunctionError, GlobalError, ImportError, JavaDialectError, MappingError, PackageBuilder.SrcError, ParserError, ProcessLoadError, SerializableDroolsError, TypeDeclarationError

public abstract class DroolsError
extends Object
implements org.drools.builder.KnowledgeBuilderError


Constructor Summary
DroolsError()
           
 
Method Summary
abstract  int[] getErrorLines()
          Returns the lines of the error in the source file
abstract  String getMessage()
          Classes that extend this must provide a printable message, which summarises the error.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DroolsError

public DroolsError()
Method Detail

getMessage

public abstract String getMessage()
Classes that extend this must provide a printable message, which summarises the error.

Specified by:
getMessage in interface org.drools.builder.KnowledgeBuilderError

getErrorLines

public abstract int[] getErrorLines()
Returns the lines of the error in the source file

Specified by:
getErrorLines in interface org.drools.builder.KnowledgeBuilderError
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.