| 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 'package:stack_trace/stack_trace.dart'; | 7 import 'package:stack_trace/stack_trace.dart'; |
| 8 | 8 |
| 9 import 'asset_id.dart'; | 9 import 'asset/asset_id.dart'; |
| 10 import 'transformer.dart'; | 10 import 'transformer/transformer.dart'; |
| 11 import 'utils.dart'; | 11 import 'utils.dart'; |
| 12 | 12 |
| 13 /// Error thrown when an asset with [id] cannot be found. | 13 /// Error thrown when an asset with [id] cannot be found. |
| 14 class AssetNotFoundException implements Exception { | 14 class AssetNotFoundException implements Exception { |
| 15 final AssetId id; | 15 final AssetId id; |
| 16 | 16 |
| 17 AssetNotFoundException(this.id); | 17 AssetNotFoundException(this.id); |
| 18 | 18 |
| 19 String toString() => "Could not find asset $id."; | 19 String toString() => "Could not find asset $id."; |
| 20 } | 20 } |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 bool operator==(other) => | 177 bool operator==(other) => |
| 178 other is TransformInfo && | 178 other is TransformInfo && |
| 179 other.transformer == transformer && | 179 other.transformer == transformer && |
| 180 other.primaryId == primaryId; | 180 other.primaryId == primaryId; |
| 181 | 181 |
| 182 int get hashCode => transformer.hashCode ^ primaryId.hashCode; | 182 int get hashCode => transformer.hashCode ^ primaryId.hashCode; |
| 183 | 183 |
| 184 String toString() => "$transformer on $primaryId"; | 184 String toString() => "$transformer on $primaryId"; |
| 185 } | 185 } |
| OLD | NEW |