rdevCode property
RdevCode
get
rdevCode
Implementation
RdevCode get rdevCode {
switch (code) {
case 'cancelled':
return RdevCode.Cancelled;
case 'unknown':
return RdevCode.Unknown;
case 'invalid-argument':
return RdevCode.InvalidArgument;
case 'deadline-exceeded':
return RdevCode.DeadlineExceeded;
case 'not-found':
return RdevCode.NotFound;
case 'already-exists':
return RdevCode.AlreadyExists;
case 'permission-denied':
return RdevCode.PermissionDenied;
case 'resource-exhausted':
return RdevCode.ResourceExhausted;
case 'failed-precondition':
return RdevCode.FailedPrecondition;
case 'aborted':
return RdevCode.Aborted;
case 'out-of-range':
return RdevCode.OutOfRange;
case 'unimplemented':
return RdevCode.Unimplemented;
case 'internal':
return RdevCode.Internal;
case 'unavailable':
return RdevCode.Unavailable;
case 'data-loss':
return RdevCode.DataLoss;
case 'unauthenticated':
return RdevCode.Unauthenticated;
default:
return RdevCode.Unknown;
}
}