| Index: pkg/csslib/lib/src/validate.dart
|
| diff --git a/pkg/csslib/lib/src/validate.dart b/pkg/csslib/lib/src/validate.dart
|
| index d85c341f7b5c00f88a0a74120f166acdef6c1d4d..bc3a6ad59d37ee99c1aad3d64e2cd91cc2f6b95c 100644
|
| --- a/pkg/csslib/lib/src/validate.dart
|
| +++ b/pkg/csslib/lib/src/validate.dart
|
| @@ -5,19 +5,12 @@
|
| library csslib.src.validate;
|
|
|
| import 'package:csslib/visitor.dart';
|
| -import 'package:source_maps/span.dart' show Span;
|
| +import 'package:source_span/source_span.dart';
|
|
|
| /** Can be thrown on any Css runtime problem includes source location. */
|
| -class CssSelectorException implements Exception {
|
| - final String _message;
|
| - final Span _span;
|
| -
|
| - CssSelectorException(this._message, [this._span]);
|
| -
|
| - String toString() {
|
| - var msg = _span == null ? _message : _span.getLocationMessage(_message);
|
| - return 'CssSelectorException: $msg';
|
| - }
|
| +class CssSelectorException extends SourceSpanException {
|
| + CssSelectorException(String message, [SourceSpan span])
|
| + : super(message, span);
|
| }
|
|
|
| List<String> classes = [];
|
|
|