| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |