View Javadoc
1   package de.japrost.jabudget.domain;
2   
3   /**
4    * Failure codes for {@link DomainException}.
5    */
6   public enum DomainFailure {
7   	/**
8   	 * The entity to operate on already exists. E.g. when creating a new one.
9   	 */
10  	DUPLICATE_ENTITY,
11  	/**
12  	 * The entity to operate on does not exist. E.g. when try updating an existing one.
13  	 */
14  	MISSING_ENTITY,
15  	/**
16  	 * The object to operate on has reference to an entity that does not exist.
17  	 */
18  	MISSING_ENTITY_REFERENCE,
19  	/**
20  	 * The entity to locate does not exist. E.g. when try finding an existing one.
21  	 */
22  	ENTITY_NOT_AVAILABLE;
23  }