package edu.vt.marian.common; /** * Return codes common to many classes of MARIAN objects. * * @author: Robert France * */ public class ReturnCodes { public final static int OK = 0; // No error; everything's jake; all is groovy. Got it? public final static int NOT_FOUND = -1; // I tried, but I couldn't find (or produce) it. public final static int BAD_PARAMS = -2; // You can't call me with those parameters! public final static int TYPE_ERROR = -3; // Inappropriate, unknown, or fouled-up type. public final static int IO_ERROR = -4; // Any failure dealing with reading & writing. public final static int SYSTEM_FAILURE = -5; // Any other failure of a UNIX routine. public final static int IMPOSSIBLE_ERROR = -6; // The error that should never occur. public final static int PARSE_ERROR = -7; // Error during parsing. public final static int NOT_YET_IMPLEMENTED = -8; // Nobody's written this part yet. public final static int ALLOC_FAILURE = -9; // No more memory to be allocated. public final static int NO_CAN_DO = -10; // That's not within what I was designed to do. public final static int NULL_STREAM = -17; // Null input or output channel. public final static int UNKNOWN_ERROR = -23; }