Метод toString
String toString(Преобразует объект OSError в строковое представление.
Исходный код
String toString() {
StringBuffer sb = new StringBuffer();
sb.write("OS Error");
if (!message.isEmpty) {
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();
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/OSError/toString.html