Class PublixErrorMessages


  • public class PublixErrorMessages
    extends java.lang.Object
    Helper class with methods that generate error strings.
    • Field Detail

      • ABANDONED_STUDY_BY_COOKIE

        public static final java.lang.String ABANDONED_STUDY_BY_COOKIE
        See Also:
        Constant Field Values
      • STUDY_CAN_BE_DONE_ONLY_ONCE

        public static final java.lang.String STUDY_CAN_BE_DONE_ONLY_ONCE
        See Also:
        Constant Field Values
      • IDCOOKIE_COLLECTION_FULL

        public static final java.lang.String IDCOOKIE_COLLECTION_FULL
        See Also:
        Constant Field Values
      • IDCOOKIE_COLLECTION_INDEX_OUT_OF_BOUND

        public static final java.lang.String IDCOOKIE_COLLECTION_INDEX_OUT_OF_BOUND
        See Also:
        Constant Field Values
    • Constructor Detail

      • PublixErrorMessages

        public PublixErrorMessages()
    • Method Detail

      • workerNotAllowedStudy

        public static java.lang.String workerNotAllowedStudy​(Worker worker,
                                                             java.lang.Long studyId)
      • workerNotExist

        public static java.lang.String workerNotExist​(java.lang.String workerIdStr)
      • workerTypeNotAllowed

        public static java.lang.String workerTypeNotAllowed​(java.lang.String workerType,
                                                            java.lang.Long studyId,
                                                            java.lang.Long batchId)
      • batchMaxTotalWorkerReached

        public static java.lang.String batchMaxTotalWorkerReached​(java.lang.Long batchId)
      • studyDeactivated

        public static java.lang.String studyDeactivated​(java.lang.Long studyId)
      • batchInactive

        public static java.lang.String batchInactive​(java.lang.Long batchId)
      • forbiddenNonLinearStudyFlow

        public static java.lang.String forbiddenNonLinearStudyFlow​(java.lang.String studyTitle,
                                                                   java.lang.Long studyId,
                                                                   java.lang.Long lastComponentId,
                                                                   java.lang.Long componentId)
      • componentNotAllowedToReload

        public static java.lang.String componentNotAllowedToReload​(java.lang.Long studyId,
                                                                   java.lang.Long componentId)
      • studyHasNoActiveComponents

        public static java.lang.String studyHasNoActiveComponents​(java.lang.Long studyId)
      • studyNotGroupStudy

        public static java.lang.String studyNotGroupStudy​(java.lang.Long studyId)
      • componentNotExist

        public static java.lang.String componentNotExist​(java.lang.Long studyId,
                                                         java.lang.Long componentId)
      • componentNotBelongToStudy

        public static java.lang.String componentNotBelongToStudy​(java.lang.Long studyId,
                                                                 java.lang.Long componentId)
      • componentNotActive

        public static java.lang.String componentNotActive​(java.lang.Long studyId,
                                                          java.lang.Long componentId)
      • studyFinishedWithMessage

        public static java.lang.String studyFinishedWithMessage​(java.lang.String message)
      • studyAssetsNotAllowedOutsideRun

        public static java.lang.String studyAssetsNotAllowedOutsideRun​(java.lang.String filePath)
      • couldntExtractFromIdCookie

        public static java.lang.String couldntExtractFromIdCookie​(java.lang.String idCookieName,
                                                                  java.lang.String key)
      • couldntExtractIndexFromIdCookieName

        public static java.lang.String couldntExtractIndexFromIdCookieName​(java.lang.String idCookieName)
      • idCookieForThisStudyResultNotExists

        public static java.lang.String idCookieForThisStudyResultNotExists​(java.lang.Long studyResultId)
      • idCookieExistsAlready

        public static java.lang.String idCookieExistsAlready​(java.lang.Long studyResultId)