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

Unified Diff: runtime/lib/string_base.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: runtime/lib/string_base.dart
diff --git a/runtime/lib/string_base.dart b/runtime/lib/string_base.dart
index 14bd6c2dfbc37e8cc5d041866794e67bca38c6bc..45e4aa6661f027af63acc0cd67fd0bdca71e9d7a 100644
--- a/runtime/lib/string_base.dart
+++ b/runtime/lib/string_base.dart
@@ -9,7 +9,7 @@
class _StringBase {
factory _StringBase._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_StringBase can't be instaniated");
}
@@ -356,7 +356,7 @@ class _StringBase {
class _OneByteString extends _StringBase implements String {
factory _OneByteString._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_OneByteString can only be allocated by the VM");
}
@@ -374,7 +374,7 @@ class _OneByteString extends _StringBase implements String {
class _TwoByteString extends _StringBase implements String {
factory _TwoByteString._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_TwoByteString can only be allocated by the VM");
}
@@ -391,7 +391,7 @@ class _TwoByteString extends _StringBase implements String {
class _FourByteString extends _StringBase implements String {
factory _FourByteString._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_FourByteString can only be allocated by the VM");
}
@@ -408,7 +408,7 @@ class _FourByteString extends _StringBase implements String {
class _ExternalOneByteString extends _StringBase implements String {
factory _ExternalOneByteString._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_ExternalOneByteString can only be allocated by the VM");
}
@@ -425,7 +425,7 @@ class _ExternalOneByteString extends _StringBase implements String {
class _ExternalTwoByteString extends _StringBase implements String {
factory ExternalTwoByteString._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"_ExternalTwoByteString can only be allocated by the VM");
}
@@ -442,7 +442,7 @@ class _ExternalTwoByteString extends _StringBase implements String {
class _ExternalFourByteString extends _StringBase implements String {
factory _ExternalFourByteString._uninstantiable() {
- throw const UnsupportedOperationException(
+ throw new StateError(
"ExternalFourByteString can only be allocated by the VM");
}

Powered by Google App Engine
This is Rietveld 408576698