org.drools.compiler
Class SerializableDroolsError
java.lang.Object
org.drools.compiler.DroolsError
org.drools.compiler.SerializableDroolsError
- All Implemented Interfaces:
- Externalizable, Serializable, org.drools.builder.KnowledgeBuilderError
public class SerializableDroolsError
- extends DroolsError
- implements Externalizable
- See Also:
- Serialized Form
SerializableDroolsError
public SerializableDroolsError()
SerializableDroolsError
public SerializableDroolsError(String message,
int[] errorLines,
String errorClassName)
getMessage
public String getMessage()
- Classes that extend this must provide a printable message,
which summarises the error.
- Specified by:
getMessage in interface org.drools.builder.KnowledgeBuilderError- Specified by:
getMessage in class DroolsError
getErrorLines
public int[] getErrorLines()
- Returns the lines of the error in the source file
- Specified by:
getErrorLines in interface org.drools.builder.KnowledgeBuilderError- Specified by:
getErrorLines in class DroolsError
- Returns:
toString
public String toString()
- Overrides:
toString in class DroolsError
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.