| 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 library barback.errors; | 5 library barback.errors; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 | 9 |
| 10 import 'asset_id.dart'; | 10 import 'asset_id.dart'; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 /// Error thrown when a transformer requests an input [id] which cannot be | 30 /// Error thrown when a transformer requests an input [id] which cannot be |
| 31 /// found. | 31 /// found. |
| 32 class MissingInputException implements Exception { | 32 class MissingInputException implements Exception { |
| 33 final AssetId id; | 33 final AssetId id; |
| 34 | 34 |
| 35 MissingInputException(this.id); | 35 MissingInputException(this.id); |
| 36 | 36 |
| 37 String toString() => "Missing input $id."; | 37 String toString() => "Missing input $id."; |
| 38 } | 38 } |
| 39 |
| 40 /// Error thrown when a transformer outputs an asset with the wrong package |
| 41 /// name. |
| 42 class InvalidOutputException implements Exception { |
| 43 final String package; |
| 44 final AssetId id; |
| 45 |
| 46 InvalidOutputException(this.package, this.id); |
| 47 |
| 48 String toString() => "Invalid output $id: must be in package $package."; |
| 49 } |
| OLD | NEW |