Package ro.sync.ecss.extensions.api.link
Class InvalidLinkException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ro.sync.ecss.extensions.api.link.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
-
-
Constructor Summary
Constructors Constructor Description InvalidLinkException(java.lang.String message)
Constructor.InvalidLinkException(java.lang.String message, Severity severity, boolean presentInplace)
Constructor.
-
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)
-
-
-
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
.
-
-