Chromium Code Reviews| Index: sdk/lib/core/errors.dart |
| diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart |
| index eeb0c04fdef2e4f25040354dc318709b320b4728..ab087ee85b4928fc3261653fb3afb4ae227ce809 100644 |
| --- a/sdk/lib/core/errors.dart |
| +++ b/sdk/lib/core/errors.dart |
| @@ -245,3 +245,12 @@ class StackOverflowError implements Error { |
| const StackOverflowError(); |
| String toString() => "Stack Overflow"; |
| } |
| + |
| +/** |
| + * Exception thrown when a runtime error occurs. |
|
karlklose
2012/12/07 09:27:38
Exception -> Error.
Johnni Winther
2012/12/11 15:30:24
Done.
|
| + */ |
| +class RuntimeError implements Error { |
|
Lasse Reichstein Nielsen
2012/12/06 19:40:54
If the VM doesn't use this class, and I don't thin
Johnni Winther
2012/12/11 15:30:24
Some language tests rely on it so it cannot be mov
|
| + final message; |
| + RuntimeError(this.message); |
| + String toString() => "RuntimeError: $message"; |
| +} |