platform/packages/range_header/lib/src/exception.dart
thomashii@dukefirehawk.com 3b2fc97da1 Migrated range_header
2021-05-01 11:39:09 +08:00

17 lines
414 B
Dart

class RangeHeaderParseException extends FormatException {
final String message;
RangeHeaderParseException(this.message);
@override
String toString() => 'Range header parse exception: $message';
}
class InvalidRangeHeaderException implements Exception {
final String message;
InvalidRangeHeaderException(this.message);
@override
String toString() => 'Range header parse exception: $message';
}