Interface SModel.Problem

  • Enclosing interface:
    SModel

    public static interface SModel.Problem
    Represents a problem with the persistence.
    • Method Detail

      • getKind

        SModel.Problem.Kind getKind()
        Returns whether it was a save or load problem. Save problems can arise when an AST content doesn't fit into the persistence format.
      • getLocation

        String getLocation()
        When line and column are available, returns the location of the stream, where the problem occurred, or just plain text description of the location otherwise.
      • getColumn

        int getColumn()
      • getLine

        int getLine()
      • isError

        boolean isError()
        Errors usually cause model to be partially loaded, so it cannot be saved back to the storage later.
      • getAnchorNode

        @Nullable
        SNodeReference getAnchorNode()
        The incomplete node (when available) for load problems, or a node which caused troubles during save operation.