mirror of
https://github.com/chenasraf/btool.git
synced 2026-05-18 01:48:58 +00:00
23 lines
502 B
Dart
23 lines
502 B
Dart
import 'package:file/file.dart';
|
|
|
|
|
|
class _BToolBaseException implements Exception {
|
|
final String message;
|
|
_BToolBaseException(this.message);
|
|
|
|
@override
|
|
String toString() => message;
|
|
}
|
|
|
|
class BToolException extends _BToolBaseException {
|
|
BToolException(super.message);
|
|
}
|
|
|
|
class BToolOptionsException extends _BToolBaseException {
|
|
BToolOptionsException(super.message);
|
|
}
|
|
|
|
Directory getCurrentDir(Directory? workingDir, {required FileSystem fs}) {
|
|
return workingDir ?? fs.currentDirectory;
|
|
}
|