Dart API Referencedart:ioDirectoryIOException

DirectoryIOException Class

Implements

Exception

Constructors

Code const DirectoryIOException([String message = "", String path = "", OSError osError = null]) #

const DirectoryIOException([String this.message = "",
                            String this.path = "",
                            OSError this.osError = null]);

Methods

Code String toString() #

String toString() {
  StringBuffer sb = new StringBuffer();
  sb.add("DirectoryIOException");
  if (!message.isEmpty()) {
    sb.add(": $message");
    if (path != null) {
      sb.add(", path = $path");
    }
    if (osError != null) {
      sb.add(" ($osError)");
    }
  } else if (osError != null) {
    sb.add(": $osError");
    if (path != null) {
      sb.add(", path = $path");
    }
  }
  return sb.toString();
}

Fields

Code final String message #

final String message;

Code final OSError osError #

final OSError osError;

Code final String path #

final String path;