blob: 49bd25d24edeea3214a504c6a7ce5230f5f34464 [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.
import 'dart:io' show IOException;
class HttpException implements IOException {
final String message;
final Uri uri;
const HttpException(this.message, {this.uri});
String toString() {
var b = new StringBuffer()..write('HttpException: ')..write(message);
if (uri != null) {
b.write(', uri = $uri');
}
return b.toString();
}
}