mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
25 lines
616 B
Dart
25 lines
616 B
Dart
// Copyright 2013 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
class BrowserInstallerException implements Exception {
|
|
BrowserInstallerException(this.message);
|
|
|
|
final String message;
|
|
|
|
@override
|
|
String toString() => message;
|
|
}
|
|
|
|
/// Throw this exception in felt command to exit felt with a message and a
|
|
/// non-zero exit code.
|
|
class ToolExit implements Exception {
|
|
ToolExit(this.message, { this.exitCode = 1 });
|
|
|
|
final String message;
|
|
final int exitCode;
|
|
|
|
@override
|
|
String toString() => message;
|
|
}
|