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

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

Issue 16854005: First pass at build dependency graph for barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Handle unprovided sources and errors a bit better. Created 7 years, 6 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/change_batch.dart ('k') | pkg/barback/lib/src/phase.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 'asset_id.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 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/change_batch.dart ('k') | pkg/barback/lib/src/phase.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698