Rule Execution Server API

ilog.rules.bom.serializer
Class IlrSyntaxError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ilog.rules.bom.serializer.IlrSyntaxError
All Implemented Interfaces:
Serializable

public class IlrSyntaxError
extends Exception

An exception thrown by object model serializers when a syntax error is found while reading an input stream.

See Also:
Serialized Form

Constructor Summary
IlrSyntaxError()
          Constructs a syntax error exception.
IlrSyntaxError(int lineno, String msg)
          Constructs a syntax error exception with a given line number and a given message.
IlrSyntaxError(List errors)
          Constructs a syntax error exception.
IlrSyntaxError(String msg)
          Constructs a syntax error exception with a given message.
IlrSyntaxError(String filename, int lineno, String msg)
          Constructs a syntax error exception with a given file name, a line number and a given message.
IlrSyntaxError(String msg, List errors)
          Constructs a syntax error exception.
 
Method Summary
 String[] getErrorMessages()
           
 List getErrors()
          Returns the list of errors.
 String getFilename()
          Returns the file name.
 int getLineNumber()
          Returns the line number where the syntax error occurred or -1 if the line number is not known.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlrSyntaxError

public IlrSyntaxError()
Constructs a syntax error exception.


IlrSyntaxError

public IlrSyntaxError(List errors)
Constructs a syntax error exception.


IlrSyntaxError

public IlrSyntaxError(String msg,
                      List errors)
Constructs a syntax error exception.


IlrSyntaxError

public IlrSyntaxError(String msg)
Constructs a syntax error exception with a given message.


IlrSyntaxError

public IlrSyntaxError(int lineno,
                      String msg)
Constructs a syntax error exception with a given line number and a given message.


IlrSyntaxError

public IlrSyntaxError(String filename,
                      int lineno,
                      String msg)
Constructs a syntax error exception with a given file name, a line number and a given message.

Parameters:
filename - A String that represents a file name.
lineno - An int that represents a line number.
msg - A String that represents a message.
Method Detail

getLineNumber

public int getLineNumber()
Returns the line number where the syntax error occurred or -1 if the line number is not known.


getFilename

public String getFilename()
Returns the file name. This only applies when an included file contains the reported error.


getErrors

public List getErrors()
Returns the list of errors.

Since:
JRules 6.0
Returns:
The list of errors.
See Also:
SAXException

getErrorMessages

public String[] getErrorMessages()

Rule Execution Server API

© Copyright IBM Corp. 1987, 2012