OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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 library error_view_element; | 5 library error_view_element; |
6 | 6 |
7 import 'dart:html'; | 7 import 'dart:html'; |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'package:observatory/models.dart' as M; | 9 import 'package:observatory/models.dart' as M; |
10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; | 10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 switch (kind) { | 82 switch (kind) { |
83 case M.ErrorKind.unhandledException: | 83 case M.ErrorKind.unhandledException: |
84 return 'Unhandled Exception'; | 84 return 'Unhandled Exception'; |
85 case M.ErrorKind.languageError: | 85 case M.ErrorKind.languageError: |
86 return 'Language Error'; | 86 return 'Language Error'; |
87 case M.ErrorKind.internalError: | 87 case M.ErrorKind.internalError: |
88 return 'Internal Error'; | 88 return 'Internal Error'; |
89 case M.ErrorKind.terminationError: | 89 case M.ErrorKind.terminationError: |
90 return 'Termination Error'; | 90 return 'Termination Error'; |
91 } | 91 } |
92 throw new Exception('Unkown M.ErrorKind ($kind)'); | 92 throw new Exception('Unknown M.ErrorKind ($kind)'); |
93 } | 93 } |
94 } | 94 } |
OLD | NEW |