OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of dart.io; | 5 part of dart.io; |
6 | 6 |
7 /** | 7 /** |
8 * [Link] objects are references to filesystem links. | 8 * [Link] objects are references to filesystem links. |
9 * | 9 * |
10 */ | 10 */ |
11 abstract class Link implements FileSystemEntity { | 11 abstract class Link extends FileSystemEntity { |
12 /** | 12 /** |
13 * Creates a Link object. | 13 * Creates a Link object. |
14 */ | 14 */ |
15 factory Link(String path) => new _Link(path); | 15 factory Link(String path) => new _Link(path); |
16 | 16 |
17 /** | 17 /** |
18 * Create a Lint object from a URI. | 18 * Create a Lint object from a URI. |
19 * | 19 * |
20 * If [uri] cannot reference a link this throws [UnsupportedError]. | 20 * If [uri] cannot reference a link this throws [UnsupportedError]. |
21 */ | 21 */ |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 return new ArgumentError(); | 292 return new ArgumentError(); |
293 case _OSERROR_RESPONSE: | 293 case _OSERROR_RESPONSE: |
294 var err = new OSError(response[_OSERROR_RESPONSE_MESSAGE], | 294 var err = new OSError(response[_OSERROR_RESPONSE_MESSAGE], |
295 response[_OSERROR_RESPONSE_ERROR_CODE]); | 295 response[_OSERROR_RESPONSE_ERROR_CODE]); |
296 return new FileSystemException(message, path, err); | 296 return new FileSystemException(message, path, err); |
297 default: | 297 default: |
298 return new Exception("Unknown error"); | 298 return new Exception("Unknown error"); |
299 } | 299 } |
300 } | 300 } |
301 } | 301 } |
OLD | NEW |