Google is committed to advancing racial equity for Black communities. See how.

getStringForStatus function

String getStringForStatus (int status)

Implementation

String getStringForStatus(int status) {
  switch (status) {
    case ZX.OK:
      return 'OK';
    case ZX.ERR_INTERNAL:
      return 'ERR_INTERNAL';
    case ZX.ERR_NOT_SUPPORTED:
      return 'ERR_NOT_SUPPORTED';
    case ZX.ERR_NO_RESOURCES:
      return 'ERR_NO_RESOURCES';
    case ZX.ERR_NO_MEMORY:
      return 'ERR_NO_MEMORY';
    case ZX.ERR_INTERNAL_INTR_RETRY:
      return 'ERR_INTERNAL_INTR_RETRY';
    case ZX.ERR_INVALID_ARGS:
      return 'ERR_INVALID_ARGS';
    case ZX.ERR_BAD_HANDLE:
      return 'ERR_BAD_HANDLE';
    case ZX.ERR_WRONG_TYPE:
      return 'ERR_WRONG_TYPE';
    case ZX.ERR_BAD_SYSCALL:
      return 'ERR_BAD_SYSCALL';
    case ZX.ERR_OUT_OF_RANGE:
      return 'ERR_OUT_OF_RANGE';
    case ZX.ERR_BUFFER_TOO_SMALL:
      return 'ERR_BUFFER_TOO_SMALL';
    case ZX.ERR_BAD_STATE:
      return 'ERR_BAD_STATE';
    case ZX.ERR_TIMED_OUT:
      return 'ERR_TIMED_OUT';
    case ZX.ERR_SHOULD_WAIT:
      return 'ERR_SHOULD_WAIT';
    case ZX.ERR_CANCELED:
      return 'ERR_CANCELED';
    case ZX.ERR_PEER_CLOSED:
      return 'ERR_PEER_CLOSED';
    case ZX.ERR_NOT_FOUND:
      return 'ERR_NOT_FOUND';
    case ZX.ERR_ALREADY_EXISTS:
      return 'ERR_ALREADY_EXISTS';
    case ZX.ERR_ALREADY_BOUND:
      return 'ERR_ALREADY_BOUND';
    case ZX.ERR_UNAVAILABLE:
      return 'ERR_UNAVAILABLE';
    case ZX.ERR_ACCESS_DENIED:
      return 'ERR_ACCESS_DENIED';
    case ZX.ERR_IO:
      return 'ERR_IO';
    case ZX.ERR_IO_REFUSED:
      return 'ERR_IO_REFUSED';
    case ZX.ERR_IO_DATA_INTEGRITY:
      return 'ERR_IO_DATA_INTEGRITY';
    case ZX.ERR_IO_DATA_LOSS:
      return 'ERR_IO_DATA_LOSS';
    case ZX.ERR_IO_NOT_PRESENT:
      return 'ERR_IO_NOT_PRESENT';
    case ZX.ERR_IO_OVERRUN:
      return 'ERR_IO_OVERRUN';
    case ZX.ERR_IO_MISSED_DEADLINE:
      return 'ERR_IO_MISSED_DEADLINE';
    case ZX.ERR_IO_INVALID:
      return 'ERR_IO_INVALID';
    case ZX.ERR_BAD_PATH:
      return 'ERR_BAD_PATH';
    case ZX.ERR_NOT_DIR:
      return 'ERR_NOT_DIR';
    case ZX.ERR_NOT_FILE:
      return 'ERR_NOT_FILE';
    case ZX.ERR_FILE_BIG:
      return 'ERR_FILE_BIG';
    case ZX.ERR_NO_SPACE:
      return 'ERR_NO_SPACE';
    case ZX.ERR_NOT_EMPTY:
      return 'ERR_NOT_EMPTY';
    case ZX.ERR_STOP:
      return 'ERR_STOP';
    case ZX.ERR_NEXT:
      return 'ERR_NEXT';
    case ZX.ERR_ASYNC:
      return 'ERR_ASYNC';
    case ZX.ERR_PROTOCOL_NOT_SUPPORTED:
      return 'ERR_PROTOCOL_NOT_SUPPORTED';
    case ZX.ERR_ADDRESS_UNREACHABLE:
      return 'ERR_ADDRESS_UNREACHABLE';
    case ZX.ERR_ADDRESS_IN_USE:
      return 'ERR_ADDRESS_IN_USE';
    case ZX.ERR_NOT_CONNECTED:
      return 'ERR_NOT_CONNECTED';
    case ZX.ERR_CONNECTION_REFUSED:
      return 'ERR_CONNECTION_REFUSED';
    case ZX.ERR_CONNECTION_RESET:
      return 'ERR_CONNECTION_RESET';
    case ZX.ERR_CONNECTION_ABORTED:
      return 'ERR_CONNECTION_ABORTED';
    default:
      return '(unknown: $status)';
  }
}