Class InvalidLinkException

  • All Implemented Interfaces:
    java.io.Serializable

    @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public class InvalidLinkException
    extends java.lang.Exception
    Signals a link that cannot be resolved.
    Since:
    14.2
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Severity getSeverity()  
      java.lang.String getShortMessage()  
      boolean isPresentInplace()  
      void setShortMessage​(java.lang.String shortMessage)  
      • 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

      • InvalidLinkException

        public InvalidLinkException​(java.lang.String message)
        Constructor.
        Parameters:
        message - Error message.
      • InvalidLinkException

        public InvalidLinkException​(java.lang.String message,
                                    Severity severity,
                                    boolean presentInplace)
        Constructor.
        Parameters:
        message - Error message.
        severity - A hint about the severity of the exception.
        presentInplace - true if the error message should be presented right in the document area, the same place where the link text should have been presented. false to report the error in the results area of the editor.
    • Method Detail

      • getSeverity

        public Severity getSeverity()
        Returns:
        Returns a hint about the level of the problem.
      • isPresentInplace

        public boolean isPresentInplace()
        Returns:
        true if the error message should be presented right in the document area, the same place where the link text should have been presented. false to report the error in the results area of the editor.
      • setShortMessage

        public void setShortMessage​(java.lang.String shortMessage)
        Parameters:
        shortMessage - The short message.
      • getShortMessage

        public java.lang.String getShortMessage()
        Returns:
        Returns the short message, can be null.