1 /*****************************************************************************
5 * Creation date 03.10.2012
6 * @author Author: Maria KRUCHININA
8 *****************************************************************************/
10 package org.splat.common.properties;
13 * Enumeration of all exception's code.
14 * Values are in the src/conf/log-messages.properties file.
15 * @author Maria KRUCHININA
18 public enum MessageKeyEnum {
21 * Lock reference already exists for user {2}.
23 LCK_000001("LCK-000001"),
25 * Lock reference does not exists.
27 LCK_000002("LCK-000002"),
29 * Lock reference protected and can be only deleted or updated by user {2}.
31 LCK_000003("LCK-000003"),
33 * Lock reference is timeout and could have been modified by user {2}.
35 LCK_000004("LCK-000004"),
37 * Unable to re-index the study #{1}, reason: {2}.
39 STD_000001("STD-000001"),
41 * Scenario doesn't contain the step number #{1}.
43 SCN_000001("SCN-000001"),
45 * Scenario doesn't contain the document #{1}.
47 SCN_000002("SCN-000002"),
49 * Simulation context type "{1}" already exists.
51 KNT_000001("KNT-000001"),
53 * Knowledge element type "{1}" already exists.
55 SCT_000001("SCT-000001"),
57 * Document type "{1}" already exists.
59 DCT_000001("DCT-000001");
64 private final String _value;
67 * The enum contructor with param(s).
68 * @param value The value
70 MessageKeyEnum(final String value) {
76 * @see java.lang.Enum#toString()
79 public String toString() {