1 5 package org.exoplatform.commons.exception; 6 12 public class UniqueObjectException extends ExoMessageException { 13 14 public UniqueObjectException(String messageKey) { 15 super(messageKey) ; 16 } 17 18 public UniqueObjectException(String messageKey, Object [] args) { 19 super(messageKey, args) ; 20 } 21 22 public String getExceptionDescription() { 23 return "Usually, this exception is raised when the system detect 2 or more " + 24 "objects with the same id the database or a tree of components"; 25 } 26 27 public String getErrorCode() { return "UNIQUE_CONSTRAINT: " ; } 28 } | Popular Tags |