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

Unified Diff: utils/archive/entry.dart

Issue 11235054: Removed IllegalAccessException and UnsupportedOperationException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: utils/archive/entry.dart
diff --git a/utils/archive/entry.dart b/utils/archive/entry.dart
index b5a97d1e74f0c1aaa29ff7ce85d8227994e844b7..b72ec2ec28da1da65503d2fc2d8185a610edc49f 100644
--- a/utils/archive/entry.dart
+++ b/utils/archive/entry.dart
@@ -260,10 +260,10 @@ class ArchiveEntry {
*/
InputStream openInputStream() {
if (_archiveId == null) {
- throw new UnsupportedOperationException("Cannot open input stream for "
+ throw new StateError("Cannot open input stream for "
"archive entry $pathname.");
} else if (_input != null) {
- throw new UnsupportedOperationException("An input stream has already been"
+ throw new StateError("An input stream has already been"
"opened for archive entry $pathname.");
}

Powered by Google App Engine
This is Rietveld 408576698