platform/packages/exceptions/example/main.dart

4 lines
138 B
Dart
Raw Normal View History

import 'package:platform_exceptions/http_exception.dart';
void main() => throw HttpException.notFound(message: "Can't find that page!");