mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
17 lines
337 B
Dart
17 lines
337 B
Dart
|
|
import 'enums.dart';
|
|
|
|
class GenericException implements Exception {
|
|
final ExceptionType type;
|
|
final String errorMessage;
|
|
const GenericException(
|
|
{required this.type, this.errorMessage = "Unknown Error"});
|
|
|
|
@override
|
|
String toString() {
|
|
return errorMessage;
|
|
}
|
|
|
|
List<Object?> get props => [type, errorMessage];
|
|
}
|