blob: f684e6ae5a9f53c5b27f2e1999b962ed7391c9f0 [file] [log] [blame]
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library oauth2.expiration_exception;
import 'credentials.dart';
/// An exception raised when attempting to use expired OAuth2 credentials.
class ExpirationException implements Exception {
/// The expired credentials.
final Credentials credentials;
/// Creates an ExpirationException.
ExpirationException(this.credentials);
/// Provides a string description of the ExpirationException.
String toString() =>
"OAuth2 credentials have expired and can't be refreshed.";
}