| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library barback.errors; |
| 6 |
| 7 import 'dart:async'; |
| 8 import 'dart:io'; |
| 9 |
| 10 import '../barback.dart'; |
| 11 |
| 12 /// Error thrown when an asset with [id] cannot be found. |
| 13 class AssetNotFoundException implements Exception { |
| 14 final AssetId id; |
| 15 |
| 16 AssetNotFoundException(this.id); |
| 17 |
| 18 String toString() => "Could not find asset $id."; |
| 19 } |
| 20 |
| 21 /// Error thrown when two transformers both output an asset with [id]. |
| 22 class AssetCollisionException implements Exception { |
| 23 final AssetId id; |
| 24 |
| 25 AssetCollisionException(this.id); |
| 26 |
| 27 String toString() => "Got collision on asset $id."; |
| 28 } |
| 29 |
| 30 /// Error thrown when a transformer requests an input [id] which cannot be |
| 31 /// found. |
| 32 class MissingInputException implements Exception { |
| 33 final AssetId id; |
| 34 |
| 35 MissingInputException(this.id); |
| 36 |
| 37 String toString() => "Missing input $id."; |
| 38 } |
| OLD | NEW |