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

Side by Side Diff: lib/src/authorization_exception.dart

Issue 1582703002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/oauth2.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « lib/src/authorization_code_grant.dart ('k') | lib/src/client.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 oauth2.authorization_exception;
6
7 /// An exception raised when OAuth2 authorization fails. 5 /// An exception raised when OAuth2 authorization fails.
8 class AuthorizationException implements Exception { 6 class AuthorizationException implements Exception {
9 /// The name of the error. 7 /// The name of the error.
10 /// 8 ///
11 /// Possible names are enumerated in [the spec][]. 9 /// Possible names are enumerated in [the spec][].
12 /// 10 ///
13 /// [the spec]: http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-5.2 11 /// [the spec]: http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-5.2
14 final String error; 12 final String error;
15 13
16 /// The description of the error, provided by the server. 14 /// The description of the error, provided by the server.
(...skipping 14 matching lines...) Expand all
31 String toString() { 29 String toString() {
32 var header = 'OAuth authorization error ($error)'; 30 var header = 'OAuth authorization error ($error)';
33 if (description != null) { 31 if (description != null) {
34 header = '$header: $description'; 32 header = '$header: $description';
35 } else if (uri != null) { 33 } else if (uri != null) {
36 header = '$header: $uri'; 34 header = '$header: $uri';
37 } 35 }
38 return '$header.'; 36 return '$header.';
39 } 37 }
40 } 38 }
OLDNEW
« no previous file with comments | « lib/src/authorization_code_grant.dart ('k') | lib/src/client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698