Package xj3d.filter
Class FilterExitCodes
java.lang.Object
xj3d.filter.FilterExitCodes
Collection of the exit codes for the server tools.
Previously, these were located in CDFFilter, but by commonizing
as many exit codes as we can we will make all our code bases more
consistent. Other filter chains can extend this class to define
project-specific exit codes if desired.
If everything is working as intended then exit code is equal to zero, or
SUCCESS
. If we encounter any abnormalities, errors, or exceptions,
then a non-zero exit code should be used. In general, the lower the value
of the non-zero exit code, the more we prioritize catching the error.
- Version:
- $Revision: 1.0 $
- Author:
- Eric Fickenscher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Unhandled exception.static final int
Unable to write output file.static final int
The software failed due to an exceptional error condition that is outside ordinary failure modes.
Example: failure to find native libraries or other configuration error.static final int
Input file not found.static final int
Invalid filter arguments provided other than file name.
Example: arguments are out-of-bounds, or formatted incorrectly.static final int
Invalid filter specified.
For debugging purposes only on initial deployment.static final int
Invalid input file format.static final int
Exit code to use when application has timed out, exceeding the runtime specified by a -maxRunTime parameterstatic final int
The file contained some content that cannot be converted to useable geometry.static final int
The software failed due to lack of memory.static final int
Recovered a useable file from a incorrect file.static final int
Exit code used when no exceptions or errors have occurredstatic final int
Exit code when a model is an supported file format. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SUCCESS
public static final int SUCCESSExit code used when no exceptions or errors have occurred- See Also:
-
FILE_NOT_FOUND
public static final int FILE_NOT_FOUNDInput file not found. Used when we can't read input file.- See Also:
-
INVALID_INPUT_FILE
public static final int INVALID_INPUT_FILEInvalid input file format.
Example: structural problem with the geometry format, meaning the X3D is incorrectly defined, such as geometry without a shape node.
Example: field is out of range.- See Also:
-
CANNOT_WRITE_OUTPUT_FILE
public static final int CANNOT_WRITE_OUTPUT_FILEUnable to write output file.
Example: Output file type unknown, or there is a write permission error or similar problem.- See Also:
-
INVALID_ARGUMENTS
public static final int INVALID_ARGUMENTSInvalid filter arguments provided other than file name.
Example: arguments are out-of-bounds, or formatted incorrectly.- See Also:
-
INVALID_FILTER_SPECIFIED
public static final int INVALID_FILTER_SPECIFIEDInvalid filter specified.
For debugging purposes only on initial deployment.- See Also:
-
NOT_ALL_GEOMETRY_IS_CONVERTABLE
public static final int NOT_ALL_GEOMETRY_IS_CONVERTABLEThe file contained some content that cannot be converted to useable geometry.
Example: X3D Switch nodes or LODs.- See Also:
-
UNSUPPORTED_FORMAT
public static final int UNSUPPORTED_FORMATExit code when a model is an supported file format. Usually happens with mislabled files or combo formats like VRML 1/2- See Also:
-
RECOVERED_PARSING
public static final int RECOVERED_PARSINGRecovered a useable file from a incorrect file. Look at the model closely.- See Also:
-
MAX_RUN_TIME_EXCEEDED
public static final int MAX_RUN_TIME_EXCEEDEDExit code to use when application has timed out, exceeding the runtime specified by a -maxRunTime parameter- See Also:
-
ABNORMAL_CRASH
public static final int ABNORMAL_CRASHUnhandled exception. The software crashed abnormally. Probably error is due to a programming issue- See Also:
-
OUT_OF_MEMORY
public static final int OUT_OF_MEMORYThe software failed due to lack of memory.- See Also:
-
EXCEPTIONAL_ERROR
public static final int EXCEPTIONAL_ERRORThe software failed due to an exceptional error condition that is outside ordinary failure modes.
Example: failure to find native libraries or other configuration error.- See Also:
-
-
Constructor Details
-
FilterExitCodes
public FilterExitCodes()
-