org.drools.compiler
Class GlobalError
java.lang.Object
org.drools.compiler.DroolsError
org.drools.compiler.GlobalError
public class GlobalError
- extends DroolsError
Constructor Summary |
GlobalError(java.lang.String global,
int line)
|
Method Summary |
int[] |
getErrorLines()
Returns the lines of the error in the source file |
java.lang.String |
getGlobal()
|
java.lang.String |
getMessage()
Classes that extend this must provide a printable message,
which summarises the error. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GlobalError
public GlobalError(java.lang.String global,
int line)
getGlobal
public java.lang.String getGlobal()
getErrorLines
public int[] getErrorLines()
- Description copied from class:
DroolsError
- Returns the lines of the error in the source file
- Specified by:
getErrorLines
in class DroolsError
- Returns:
getMessage
public java.lang.String getMessage()
- Description copied from class:
DroolsError
- Classes that extend this must provide a printable message,
which summarises the error.
- Specified by:
getMessage
in class DroolsError
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object