PageRenderTime 35ms CodeModel.GetById 32ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
16package com.google.ie.common.constants;
17
18public interface IdeaExchangeErrorCodes {
19
20    String MAIL_ADDRESS_EXCETION = "mail.address.exception";
21    String MAIL_MESSAGING_EXCETION = "mail.address.exception";
22    String OWNER_VOTE_EXCEPTION = "owner.vote.exception";
23    String REPEAT_VOTE_EXCEPTION = "repeat.vote.exception";
24    /*
25     * Error code to be used when user tries to save a published idea or publish
26     * the published idea
27     */
28    String INVALID_PUBLISH = "idea.publish.exception";
29    /*
30     * Error code to be used when user key not found while retrieveing the
31     * user's projects.
32     */
33    String USER_NOT_FOUND = "user.getdeveloper.exception";
34    /*
35     * Error code to be used when user tries to create a project from a idea.
36     */
37    String PROJECT_CREATION_FAILURE_EXCEPTION = "project.creation.failure.exception";
38    String PROJECT_DETAILS_EXCEPTION = "project.details.exception";
39    /*
40     * Error code to be used when user tries to create a project from a
41     * unpublished idea.
42     */
43    String PROJECT_CREATION_FAILURE_UNPUBLISHED_IDEA_EXCEPTION = "project.creation.failure.unpublished.idea.exception";
44    /*
45     * Error code for validation errors while adding the idea summary
46     * to the idea.
47     */
48    String INVALID_IDEA_SUMMARY = "idea.summary.exception";
49    /* Validator Error codes */
50
51    String FIELD_REQUIRED = "field.required";
52    String COMMENT_LENGTH_EXCEEDS = "comment.length.exceeds";
53    String FIELD_ALWAYS_TRUE = "field.always.true";
54    String LENGTH_EXCEED_LIMIT = "field.length.exceed.limit";
55    String IDEA_NULL_EXCEPTION = "idea.null.exception";
56    String COMMENT_NULL_EXCEPTION = "comment.null.exception";
57    String PROJECT_NULL_EXCEPTION = "project.null.exception";
58    String INVALID_CHARACTER = "character.invalid";
59
60}
61