Package ro.sync.ecss.extensions.api
Class ReferenceResolverException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ro.sync.ecss.extensions.api.ReferenceResolverException
- All Implemented Interfaces:
Serializable
Exception thrown if the reference resolver could not resolve a target.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReferenceResolverException
(String errorMessage, boolean showInResultsPanel, boolean reportAsError) Constructor.ReferenceResolverException
(String shortErrorMessage, String originalErrorMessage, boolean showInResultsPanel, boolean reportAsError) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets a possible solution for the user.Obtain the exception short message.boolean
Check if the exception should be reported as an error.boolean
Check if should also show the message in a results panel.void
setErrorResolver
(ReferenceErrorResolver errorResolver) Sets a possible solution for the user.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
Sets a possible solution for the user.- Parameters:
errorResolver
- The errorResolver to set.
-
getErrorResolver
Gets a possible solution for the user.- Returns:
- Returns a possible solution for the user.
-
getShortMessage
Obtain the exception short message.- Returns:
- Returns the short message.
-