parser_exception.dart 527 Bytes
Newer Older
1 2 3 4 5 6 7 8
// Copyright (c) 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

part of cassowary;

class ParserException implements Exception {
  final String message;
9
  List<_EquationMember> members;
10 11 12 13 14 15 16
  ParserException(this.message, this.members);

  String toString() {
    if (message == null) return "Error while parsing constraint or expression";
    return "Error: '$message' while trying to parse constraint or expression";
  }
}