ilog.rules.bom.serializer

Class IlrSyntaxError

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


    public class IlrSyntaxError
    extends java.lang.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

      Constructors 
      Constructor and Description
      IlrSyntaxError()
      Constructs a syntax error exception.
      IlrSyntaxError(int lineno, java.lang.String msg)
      Constructs a syntax error exception with a given line number and a given message.
      IlrSyntaxError(java.util.List errors)
      Constructs a syntax error exception.
      IlrSyntaxError(java.lang.String msg)
      Constructs a syntax error exception with a given message.
      IlrSyntaxError(java.lang.String filename, int lineno, java.lang.String msg)
      Constructs a syntax error exception with a given file name, a line number and a given message.
      IlrSyntaxError(java.lang.String msg, java.util.List errors)
      Constructs a syntax error exception.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String[] getErrorMessages() 
      java.util.List getErrors()
      Returns the list of errors.
      java.lang.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

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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(java.util.List errors)
        Constructs a syntax error exception.
      • IlrSyntaxError

        public IlrSyntaxError(java.lang.String msg,
                      java.util.List errors)
        Constructs a syntax error exception.
      • IlrSyntaxError

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

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

        public IlrSyntaxError(java.lang.String filename,
                      int lineno,
                      java.lang.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 java.lang.String getFilename()
        Returns the file name. This only applies when an included file contains the reported error.
      • getErrors

        public java.util.List getErrors()
        Returns the list of errors.
        Since:
        JRules 6.0
        Returns:
        The list of errors.
        See Also:
        SAXException
      • getErrorMessages

        public java.lang.String[] getErrorMessages()

© Copyright IBM Corp. 1987, 2017