/src/main/java/com/google/ie/common/constants/IdeaExchangeErrorCodes.java

http://thoughtsite.googlecode.com/ · Java · 61 lines · 21 code · 6 blank · 34 comment · 0 complexity · 66e4ca96effe198498d1d7de898ffa2d MD5 · raw file

  1. /* Copyright 2010 Google Inc.
  2. *
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS.
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License
  14. */
  15. package com.google.ie.common.constants;
  16. public interface IdeaExchangeErrorCodes {
  17. String MAIL_ADDRESS_EXCETION = "mail.address.exception";
  18. String MAIL_MESSAGING_EXCETION = "mail.address.exception";
  19. String OWNER_VOTE_EXCEPTION = "owner.vote.exception";
  20. String REPEAT_VOTE_EXCEPTION = "repeat.vote.exception";
  21. /*
  22. * Error code to be used when user tries to save a published idea or publish
  23. * the published idea
  24. */
  25. String INVALID_PUBLISH = "idea.publish.exception";
  26. /*
  27. * Error code to be used when user key not found while retrieveing the
  28. * user's projects.
  29. */
  30. String USER_NOT_FOUND = "user.getdeveloper.exception";
  31. /*
  32. * Error code to be used when user tries to create a project from a idea.
  33. */
  34. String PROJECT_CREATION_FAILURE_EXCEPTION = "project.creation.failure.exception";
  35. String PROJECT_DETAILS_EXCEPTION = "project.details.exception";
  36. /*
  37. * Error code to be used when user tries to create a project from a
  38. * unpublished idea.
  39. */
  40. String PROJECT_CREATION_FAILURE_UNPUBLISHED_IDEA_EXCEPTION = "project.creation.failure.unpublished.idea.exception";
  41. /*
  42. * Error code for validation errors while adding the idea summary
  43. * to the idea.
  44. */
  45. String INVALID_IDEA_SUMMARY = "idea.summary.exception";
  46. /* Validator Error codes */
  47. String FIELD_REQUIRED = "field.required";
  48. String COMMENT_LENGTH_EXCEEDS = "comment.length.exceeds";
  49. String FIELD_ALWAYS_TRUE = "field.always.true";
  50. String LENGTH_EXCEED_LIMIT = "field.length.exceed.limit";
  51. String IDEA_NULL_EXCEPTION = "idea.null.exception";
  52. String COMMENT_NULL_EXCEPTION = "comment.null.exception";
  53. String PROJECT_NULL_EXCEPTION = "project.null.exception";
  54. String INVALID_CHARACTER = "character.invalid";
  55. }