OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 class ProtocException { |
| 6 String message; |
| 7 |
| 8 ProtocException(this.message) { } |
| 9 |
| 10 String toString() => message; |
| 11 } |
| 12 |
| 13 class InvalidDefaultValue extends ProtocException { |
| 14 InvalidDefaultValue(String message) : |
| 15 super("InvalidDefaultValue: $message") { } |
| 16 |
| 17 static InvalidDefaultValue invalidDoubleValue(String fieldName, |
| 18 String invalidValue) { |
| 19 return new InvalidDefaultValue( |
| 20 "Protoc found invalid default value ($invalidValue) for the " |
| 21 "'double' field ${fieldName}"); |
| 22 } |
| 23 } |
| 24 |
OLD | NEW |