org.drools.compiler
Class SerializableDroolsError

java.lang.Object
  extended by org.drools.compiler.DroolsError
      extended by org.drools.compiler.SerializableDroolsError
All Implemented Interfaces:
Externalizable, Serializable, org.drools.builder.KnowledgeBuilderError

public class SerializableDroolsError
extends DroolsError
implements Externalizable

See Also:
Serialized Form

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

Constructor Detail

SerializableDroolsError

public SerializableDroolsError()

SerializableDroolsError

public SerializableDroolsError(String message,
                               int[] errorLines,
                               String errorClassName)
Method Detail

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-2013 JBoss Inc.. All Rights Reserved.