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 yaml.exception; | 5 library yaml.exception; |
6 | 6 |
7 import 'package:source_maps/source_maps.dart'; | |
8 | |
7 /// An error thrown by the YAML processor. | 9 /// An error thrown by the YAML processor. |
8 class YamlException implements Exception { | 10 class YamlException extends SpanFormatException { |
Bob Nystrom
2014/06/19 23:31:04
I'm generally hesitant to inherit across package b
nweiz
2014/06/19 23:47:52
The point of SpanException and SpanFormatException
| |
9 final String _msg; | 11 YamlException(String message, Span span) |
10 | 12 : super(message, span); |
11 YamlException(this._msg); | |
12 | |
13 String toString() => _msg; | |
14 } | 13 } |
15 | 14 |
OLD | NEW |