Interface ServiceResult

  • All Known Subinterfaces:
    PurgeIndicatorResult

    public interface ServiceResult
    Represents the result of a service execution.
    Since:
    2.7.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      DQIdException getException()
      Returns the exception thrown if the service execution failed, null otherwise.
      java.lang.String getExceptionMessage​(java.util.Locale locale)
      Returns a full, localized user message with the exception thrown if service execution has failed, null otherwise.
      boolean hasFailed()
      Returns true if the service execution has failed.
    • Method Detail

      • hasFailed

        boolean hasFailed()
        Returns true if the service execution has failed.
      • getException

        DQIdException getException()
        Returns the exception thrown if the service execution failed, null otherwise.
      • getExceptionMessage

        java.lang.String getExceptionMessage​(java.util.Locale locale)
        Returns a full, localized user message with the exception thrown if service execution has failed, null otherwise.