# fromValue static method

DocumentError fromValue(

1. int value

)

Creates an enumeration value from int. param value The int value. return The created DocumentError.

## Implementation

    static DocumentError fromValue(int value) {
        	switch (value) {
          	case 0:
            	return DocumentError.success;
          	case -1:
            	return DocumentError.insufficientBuffer;
          	case -2:
            	return DocumentError.objectDoesNotExist;
          	case -11000:
            	return DocumentError.base;
          	case -11999:
            	return DocumentError.minimum;
          	case -11001:
            	return DocumentError.invalidHandle;
          	case -11002:
            	return DocumentError.invalidParameter;
          	case -11004:
            	return DocumentError.invalidPixelFormat;
          	case -11008:
            	return DocumentError.invalidModelPath;
          	case -11009:
            	return DocumentError.invalidDocumentTemplatePath;
          	case -11020:
            	return DocumentError.unloadedModel;
          	case -11021:
            	return DocumentError.unloadedDocumentTemplate;
          	case -11022:
            	return DocumentError.unknownAnnotation;
          	case -11023:
            	return DocumentError.invalidDocumentTemplateFormat;
          	case -11030:
            	return DocumentError.insufficientFrameNumber;
          	case -11039:
            	return DocumentError.backendError;
          	case -11040:
            	return DocumentError.inferenceBackendError;
          	case -11041:
            	return DocumentError.processingUnitUnavailable;
          	case -11056:
            	return DocumentError.functionNotImplemented;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}