# fromValue static method

BiosealError fromValue(

1. int value

)

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

## Implementation

    static BiosealError fromValue(int value) {
        	switch (value) {
          	case 0:
            	return BiosealError.success;
          	case -1:
            	return BiosealError.insufficientBuffer;
          	case -2:
            	return BiosealError.objectDoesNotExist;
          	case -8000:
            	return BiosealError.base;
          	case -8999:
            	return BiosealError.minimum;
          	case -8001:
            	return BiosealError.invalidHandle;
          	case -8002:
            	return BiosealError.invalidParameter;
          	case -8003:
            	return BiosealError.exceptionInCallback;
          	case -8004:
            	return BiosealError.javaException;
          	case -8005:
            	return BiosealError.resourceNotFound;
          	case -8006:
            	return BiosealError.memoryError;
          	case -8007:
            	return BiosealError.internalError;
          	case -8008:
            	return BiosealError.downloadError;
          	case -8009:
            	return BiosealError.invalidInputFormat;
          	case -8010:
            	return BiosealError.badInputLotl;
          	case -8011:
            	return BiosealError.badInputTsl;
          	case -8012:
            	return BiosealError.badInputManifest;
          	case -8013:
            	return BiosealError.unsupportedAfnorXpZ42_101Id;
          	case -8014:
            	return BiosealError.decodingFailed;
          	case -8015:
            	return BiosealError.biosealExpired;
          	case -8016:
            	return BiosealError.invalidCertificationChain;
          	case -8017:
            	return BiosealError.invalidSignature;
          	case -8018:
            	return BiosealError.authorizedUsageFailed;
          	case -8019:
            	return BiosealError.signingCertificateExpired;
          	case -8020:
            	return BiosealError.revocationInfoValidityPeriod;
          	case -8021:
            	return BiosealError.decryptionError;
          	case -8022:
            	return BiosealError.languageNotAvailable;
          	case -8023:
            	return BiosealError.biosealNotDecoded;
          	case -8024:
            	return BiosealError.notSupported;
          	case -8025:
            	return BiosealError.unableToVerifyCertificateChain;
          	case -8026:
            	return BiosealError.needToVerify;
          	case -8027:
            	return BiosealError.noSignatureFound;
          	case -8028:
            	return BiosealError.functionNotImplemented;
          	case -8029:
            	return BiosealError.noCertificateFound;
          	case -8030:
            	return BiosealError.internalSslError;
          	case -8031:
            	return BiosealError.urlParsingError;
          	case -8032:
            	return BiosealError.unsupportedDocumentIssuingCountry;
          	case -8033:
            	return BiosealError.wrongPrefix;
          	case -8034:
            	return BiosealError.duplicateManifestField;
        default:
            	throw Exception("Unable to find the specified enum value for $value");
        	}
      	}