![JAR search and dependency download from the Maven repository](/logo.png)
org.devocative.demeter.DemeterErrorCode Maven / Gradle / Ivy
The newest version!
package org.devocative.demeter;
import org.devocative.demeter.imodule.DErrorCode;
public enum DemeterErrorCode implements DErrorCode {
InvalidUser("Invalid username or password"),
InvalidCurrentPassword("Invalid current password"),
UserLocked("User is locked"),
UserDisabled("User is disabled"),
DBConstraintViolation("DB Constraint Violated"),
DBGetConnectionFailure("DB Get Connection Failure:\n1.Please Check DB Connection!\n2.Just Try Again!\n"),
TrxInvalidPropagation("Invalid trx propagation"),
TrxAlreadyActiveNoForce("Can'nt force new trx on active trx"),
TrxNotActive("No active trx"),
TrxInvalidLevel("Invalid Trx Level"),
TrxNoObject("No Trx Instance"),
TrxInvalidActive("Invalid Active Trx"),
TrxPropagationNotSupported("Trx Propagation Not Supported"),
DuplicateUsername("Duplicate Username"),
DuplicateRoleName("Duplicate Role Name"),
NoMainRoleForUser("Current user must have at least one main role for this entity");
private String defaultDescription;
DemeterErrorCode(String defaultDescription) {
this.defaultDescription = defaultDescription;
}
@Override
public String getCode() {
return name();
}
@Override
public String getDefaultDescription() {
return defaultDescription;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy