Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Side by Side Diff: pkg/barback/lib/src/errors.dart

Issue 5695057915019264: Make barback more package-aware. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/barback/lib/src/asset_provider.dart ('k') | pkg/barback/lib/src/transform_node.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/asset_provider.dart ('k') | pkg/barback/lib/src/transform_node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698