Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Side by Side Diff: runtime/bin/directory.dart

Issue 8934004: Add support for getting OS error information for creating temporary directories (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated test Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 interface Directory factory _Directory { 5 interface Directory factory _Directory {
6 /** 6 /**
7 * Creates a directory object. The path is either a full path or 7 * Creates a directory object. The path is either a full path or
8 * relative to the directory in which the Dart VM was 8 * relative to the directory in which the Dart VM was
9 * started. 9 * started.
10 */ 10 */
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void set errorHandler(void errorHandler(String error)); 94 void set errorHandler(void errorHandler(String error));
95 95
96 /** 96 /**
97 * Gets the path of this directory. 97 * Gets the path of this directory.
98 */ 98 */
99 final String path; 99 final String path;
100 } 100 }
101 101
102 102
103 class DirectoryException { 103 class DirectoryException {
104 const DirectoryException(String this.message); 104 const DirectoryException([String this.message, int this.errorCode = 0]);
105 String toString() => "DirectoryException: $message"; 105 String toString() => "DirectoryException: $message";
106 final String message; 106 final String message;
107 final int errorCode;
107 } 108 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698