Class OffsetLimitReachedException

All Implemented Interfaces:
Serializable

public class OffsetLimitReachedException extends EndOfFileException
The exception is thrown, when content-assist is requested within a context that is handled by the lexer or the preprocessor.

ORIGIN_LEXER: char-literal, string-literal, number-literal, header-name.

ORIGIN_PREPROCESSOR_DIRECTIVE: preprocessor-directive.

ORIGIN_INACTIVE_CODE: within an inactive branch of conditional compilation.

ORIGIN_MACRO_EXPANSION: within a macro-expansion.

See Also:
Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.
  • Field Details

  • Constructor Details

    • OffsetLimitReachedException

      public OffsetLimitReachedException(int origin, IToken lastToken)
  • Method Details

    • getOriginator

      public int getOriginator()
      Returns one of ORIGIN_...
    • getFinalToken

      public IToken getFinalToken()
      Returns:
      Returns the finalToken.