description

# toString method

String toString()
override

Converts an OSError object to a string representation.

## Implementation

    String toString() {
      StringBuffer sb = StringBuffer();
      sb.write("OS Error");
      if (message.isNotEmpty) {
        sb
          ..write(": ")
          ..write(message);
        if (errorCode != noErrorCode) {
          sb
            ..write(", errno = ")
            ..write(errorCode.toString());
        }
      } else if (errorCode != noErrorCode) {
        sb
          ..write(": errno = ")
          ..write(errorCode.toString());
      }
      return sb.toString();
    }