Class MarkedYamlEngineException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String context  
      private java.util.Optional<Mark> contextMark  
      private java.lang.String problem  
      private java.util.Optional<Mark> problemMark  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MarkedYamlEngineException​(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark)
      Create
      protected MarkedYamlEngineException​(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark, java.lang.Throwable cause)
      Create
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContext()
      getter
      java.util.Optional<Mark> getContextMark()
      getter
      java.lang.String getMessage()
      Getter
      java.lang.String getProblem()
      getter
      java.util.Optional<Mark> getProblemMark()
      getter
      java.lang.String toString()
      get readable error
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • context

        private final java.lang.String context
      • contextMark

        private final java.util.Optional<Mark> contextMark
      • problem

        private final java.lang.String problem
      • problemMark

        private final java.util.Optional<Mark> problemMark
    • Constructor Detail

      • MarkedYamlEngineException

        protected MarkedYamlEngineException​(java.lang.String context,
                                            java.util.Optional<Mark> contextMark,
                                            java.lang.String problem,
                                            java.util.Optional<Mark> problemMark,
                                            java.lang.Throwable cause)
        Create
        Parameters:
        context - - the context of the problem
        contextMark - - position of the context
        problem - - the issue
        problemMark - - position of the issue
        cause - - exception which was thrown
      • MarkedYamlEngineException

        protected MarkedYamlEngineException​(java.lang.String context,
                                            java.util.Optional<Mark> contextMark,
                                            java.lang.String problem,
                                            java.util.Optional<Mark> problemMark)
        Create
        Parameters:
        context - - the context of the problem
        contextMark - - position of the context
        problem - - the issue
        problemMark - - position of the issue
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Getter
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the problem
      • toString

        public java.lang.String toString()
        get readable error
        Overrides:
        toString in class java.lang.Throwable
        Returns:
        readable problem
      • getContext

        public java.lang.String getContext()
        getter
        Returns:
        context of the error
      • getContextMark

        public java.util.Optional<Mark> getContextMark()
        getter
        Returns:
        position of the context of the error
      • getProblem

        public java.lang.String getProblem()
        getter
        Returns:
        the issue
      • getProblemMark

        public java.util.Optional<Mark> getProblemMark()
        getter
        Returns:
        position of the issue