fromInt static method
Implementation
static ErrorCode? fromInt(int n) {
switch (n) {
case 0: return ErrorCode.ok;
case 1: return ErrorCode.permissionDenied;
case 2: return ErrorCode.invalidInput;
case 3: return ErrorCode.invalidData;
case 4: return ErrorCode.alreadyExists;
case 5: return ErrorCode.notFound;
case 6: return ErrorCode.ambiguous;
case 8: return ErrorCode.unsupported;
case 9: return ErrorCode.interrupted;
case 1025: return ErrorCode.connectionRefused;
case 1026: return ErrorCode.connectionAborted;
case 1027: return ErrorCode.transportError;
case 1028: return ErrorCode.listenerBindError;
case 1029: return ErrorCode.listenerAcceptError;
case 2049: return ErrorCode.storeError;
case 2050: return ErrorCode.isDirectory;
case 2051: return ErrorCode.notDirectory;
case 2052: return ErrorCode.directoryNotEmpty;
case 2053: return ErrorCode.resourceBusy;
case 4097: return ErrorCode.runtimeInitializeError;
case 4099: return ErrorCode.configError;
case 4100: return ErrorCode.tlsCertificatesNotFound;
case 4101: return ErrorCode.tlsCertificatesInvalid;
case 4102: return ErrorCode.tlsKeysNotFound;
case 4103: return ErrorCode.tlsConfigError;
case 4104: return ErrorCode.vfsDriverInstallError;
case 4105: return ErrorCode.vfsOtherError;
case 4106: return ErrorCode.serviceAlreadyRunning;
case 4107: return ErrorCode.storeDirUnspecified;
case 4108: return ErrorCode.mountDirUnspecified;
case 65535: return ErrorCode.other;
default: return null;
}
}