Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: lib/protobuf/plugin/ProtocException.dart

Issue 10595002: Protocol Buffer runtime library and 'protoc' plugin (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Work around http://code.google.com/p/dart/issues/detail?id=3806 Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/protobuf/plugin/ProtobufField.dart ('k') | lib/protobuf/plugin/ProtocGenDart.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « lib/protobuf/plugin/ProtobufField.dart ('k') | lib/protobuf/plugin/ProtocGenDart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698