Enum Class ResponseCode

java.lang.Object
java.lang.Enum<ResponseCode>
com.skava.ratingandreviews.exceptions.ResponseCode
All Implemented Interfaces:
Serializable, Comparable<ResponseCode>, Constable

public enum ResponseCode extends Enum<ResponseCode>

enum responseCode

this enum contains the response code of each and every response

  • Enum Constant Details

    • RATING_REVIEW_SUCCESS

      public static final ResponseCode RATING_REVIEW_SUCCESS
    • ERR_RATING_REVIEW_NOT_ALLOW_MULTI_ENTRY

      public static final ResponseCode ERR_RATING_REVIEW_NOT_ALLOW_MULTI_ENTRY
    • ERR_USER_NOT_ALLOW_TO_EDIT_REVIEW

      public static final ResponseCode ERR_USER_NOT_ALLOW_TO_EDIT_REVIEW
    • ERR_USER_NOT_POST_THIS_REVIEW

      public static final ResponseCode ERR_USER_NOT_POST_THIS_REVIEW
    • ERR_RATING_MANDATORY_TO_WRITE_REVIEW

      public static final ResponseCode ERR_RATING_MANDATORY_TO_WRITE_REVIEW
    • ERR_REVIEWS_NOT_MATCH_WITH_REGEX

      public static final ResponseCode ERR_REVIEWS_NOT_MATCH_WITH_REGEX
    • ERR_REVIES_MIN_MAX_LENGTH_NOT_MET

      public static final ResponseCode ERR_REVIES_MIN_MAX_LENGTH_NOT_MET
    • ERR_USER_NOT_ALLOW_TO_UPLOAD_IMAGES

      public static final ResponseCode ERR_USER_NOT_ALLOW_TO_UPLOAD_IMAGES
    • ERR_REVIEW_CONTAINS_STOPWORDS

      public static final ResponseCode ERR_REVIEW_CONTAINS_STOPWORDS
    • ERR_RATING_AND_REVIEW_ID_NOT_EXITS

      public static final ResponseCode ERR_RATING_AND_REVIEW_ID_NOT_EXITS
    • ERR_USER_NOT_SUPPORT_THIS_ACTION

      public static final ResponseCode ERR_USER_NOT_SUPPORT_THIS_ACTION
    • ERR_IMAGE_SIZE_EXCEED

      public static final ResponseCode ERR_IMAGE_SIZE_EXCEED
    • ERR_MAX_COUNT_REACHED_FOR_THIS_REVIEW

      public static final ResponseCode ERR_MAX_COUNT_REACHED_FOR_THIS_REVIEW
  • Method Details

    • values

      public static ResponseCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResponseCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null