001 package sale;
002
003 /**
004 * A collection of predefined process error codes.
005 *
006 * @author Steffen Zschaler
007 * @version 2.0 17/08/1999
008 * @since v2.0
009 */
010 public interface ProcessErrorCodes {
011
012 /**
013 * Any user defined error code must be outside
014 * <code>[ERR_LOWERBOUND, {@link #ERR_UPPERBOUND}]</code>.
015 */
016 public static final int ERR_LOWERBOUND = -100; // allow for other Framework defined errors
017
018 /**
019 * Error code constant: No error.
020 */
021 public static final int ERR_NOERROR = 0;
022
023 /**
024 * Error code constant: Unspecific internal error, that should not normally occur.
025 */
026 public static final int ERR_INTERNAL = -1;
027
028 /**
029 * Error code constant: There were not enough elements in the source of a move action in a
030 * {@link data.stdforms.TwoTableFormSheet}.
031 */
032 public static final int NOT_ENOUGH_ELEMENTS_ERROR = -2;
033
034 /**
035 * Error code constant: A {@link data.events.VetoException} occurred while trying to remove items from a
036 * container.
037 */
038 public static final int REMOVE_VETO_EXCEPTION = -3;
039
040 /**
041 * Error code constant: When adding an item to a container, there was a key duplication.
042 */
043 public static final int DUPLICATE_KEY_EXCEPTION = -4;
044
045 /**
046 * Error code constant: A {@link data.DataBasketConflictException} occurred while trying to add/remove
047 * items to/from a container.
048 */
049 public static final int DATABASKET_CONFLICT_ERROR = -5;
050
051 /**
052 * Any user defined error code must be outside
053 * <code>[{@link #ERR_LOWERBOUND}, ERR_UPPERBOUND]</code>.
054 */
055 public static final int ERR_UPPERBOUND = 0;
056 }