Class ReferenceResolverException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ro.sync.ecss.extensions.api.ReferenceResolverException
All Implemented Interfaces:
Serializable

@API(type=EXTENDABLE, src=PUBLIC) public class ReferenceResolverException extends RuntimeException
Exception thrown if the reference resolver could not resolve a target.
See Also:
  • Constructor Details

    • ReferenceResolverException

      public ReferenceResolverException(String errorMessage, boolean showInResultsPanel, boolean reportAsError)
      Constructor.
      Parameters:
      errorMessage - The error message.
      showInResultsPanel - true to also show the message in a results panel.
      reportAsError - true to report as error, false to report as warning.
    • ReferenceResolverException

      public ReferenceResolverException(String shortErrorMessage, String originalErrorMessage, boolean showInResultsPanel, boolean reportAsError)
      Constructor.
      Parameters:
      shortErrorMessage - The short error message. Sometimes the message which will be presented first time to the user is shorter than the original message.
      originalErrorMessage - The exception original message.
      showInResultsPanel - true to also show the message in a results panel.
      reportAsError - true to report as error, false to report as warning.
  • Method Details

    • isShowInResultsPanel

      public boolean isShowInResultsPanel()
      Check if should also show the message in a results panel.
      Returns:
      Returns true to also show the message in a results panel.
    • isReportAsError

      public boolean isReportAsError()
      Check if the exception should be reported as an error.
      Returns:
      Returns true to report as error, false to report as warning.
    • setErrorResolver

      public void setErrorResolver(ReferenceErrorResolver errorResolver)
      Sets a possible solution for the user.
      Parameters:
      errorResolver - The errorResolver to set.
    • getErrorResolver

      public ReferenceErrorResolver getErrorResolver()
      Gets a possible solution for the user.
      Returns:
      Returns a possible solution for the user.
    • getShortMessage

      public String getShortMessage()
      Obtain the exception short message.
      Returns:
      Returns the short message.