Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Exceptions are thrown either by the VM or from Dart code. | 5 // Exceptions are thrown either by the VM or from Dart code. |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Interface implemented by all core library exceptions. | 8 * Interface implemented by all core library exceptions. |
| 9 */ | 9 */ |
| 10 interface Exception default ExceptionImplementation { | 10 interface Exception default ExceptionImplementation { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 187 String toString() => "IllegalJSRegExpException: '$_pattern' '$_errmsg'"; | 187 String toString() => "IllegalJSRegExpException: '$_pattern' '$_errmsg'"; |
| 188 final String _pattern; | 188 final String _pattern; |
| 189 final String _errmsg; | 189 final String _errmsg; |
| 190 } | 190 } |
| 191 | 191 |
| 192 | 192 |
| 193 class IntegerDivisionByZeroException implements Exception { | 193 class IntegerDivisionByZeroException implements Exception { |
| 194 const IntegerDivisionByZeroException(); | 194 const IntegerDivisionByZeroException(); |
| 195 String toString() => "IntegerDivisionByZeroException"; | 195 String toString() => "IntegerDivisionByZeroException"; |
| 196 } | 196 } |
| 197 | |
| 198 class AssertionError { | |
|
Anders Johnsen
2012/08/27 12:18:44
Should we create a private constructor so it's not
Mads Ager (google)
2012/08/28 13:01:37
If we put it in here we should probably call it As
Mads Ager (google)
2012/08/28 13:01:37
I don't think there is any harm in this being inst
Anders Johnsen
2012/08/28 14:39:18
Sorry, didn't see that comment earlier on. I've cr
| |
| 199 } | |
| OLD | NEW |