mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
16 lines
355 B
Dart
16 lines
355 B
Dart
import 'package:lunasea/types/log_type.dart';
|
|
|
|
abstract class LunaException implements Exception {
|
|
LunaLogType get type;
|
|
}
|
|
|
|
mixin WarningExceptionMixin implements LunaException {
|
|
@override
|
|
LunaLogType get type => LunaLogType.WARNING;
|
|
}
|
|
|
|
mixin ErrorExceptionMixin implements LunaException {
|
|
@override
|
|
LunaLogType get type => LunaLogType.ERROR;
|
|
}
|