ilog.rules.vocabulary.model.io

Class IlrSerializerError

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • ilog.rules.vocabulary.model.io.IlrSerializerError
  • All Implemented Interfaces:
    java.io.Serializable


    public class IlrSerializerError
    extends java.lang.Exception
    This class defines an exception that may be thrown when reading of a vocabulary file.
    See Also:
    Serialized Form
    • Constructor Summary

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

      Methods 
      Modifier and Type Method and Description
      java.lang.String getFilename()
      Returns the file name.
      int getLineNumber()
      Returns the line number where the syntax error occured 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

      • IlrSerializerError

        public IlrSerializerError()
        Constructs a syntax error exception.
      • IlrSerializerError

        public IlrSerializerError(java.lang.String msg)
        Constructs a syntax error exception with a given message.
        Parameters:
        msg - The message.
      • IlrSerializerError

        public IlrSerializerError(int lineno,
                          java.lang.String msg)
        Constructs a syntax error exception with a given line number and a given message.
        Parameters:
        lineno - The line number.
        msg - The message.
      • IlrSerializerError

        public IlrSerializerError(java.lang.String filename,
                          int lineno,
                          java.lang.String msg)
        Constructs a syntax error exception with a file name, a line number and a message.
        Parameters:
        filename - The file name.
        lineno - The line number.
        msg - The message.
    • Method Detail

      • getLineNumber

        public int getLineNumber()
        Returns the line number where the syntax error occured or -1 if the line number is not known.
        Returns:
        The line number.
      • getFilename

        public java.lang.String getFilename()
        Returns the file name. Only applies when an included file contains the reported error.
        Returns:
        The file name.

© Copyright IBM Corp. 1987, 2017