/reactree-flutter-dev:error-handlingfrom reactree-flutter-dev
Provides error handling patterns for Dart/Flutter apps including exception classes, failure classes, and Either type usage. Useful for structuring error flows in clean architecture.
Ships in reactree-flutter-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
abstract class AppException implements Exception {
final String message;
final String? code;
const AppException({required this.message, this.code});
}
class ServerException extends AppException {
final int? statusCode;
const ServerException({
required super.message,
super.code,
this.statusCode,
});
}
class CacheException extends AppException {
const CacheException({required super.message, super.code});
}
class NetworkException extends AppException {
const NetworkException({
super.message = 'No internet connection',
super.code,
});
}
import 'package:equatable/equatable.dart';
abstract class Failure extends Equatable {
final String message;
const Failure(this.message);
@override
List<Object> get props => [message];
}
class ServerFailure extends Failure {
const ServerFailure(super.message);
}
class CacheFailure extends Failure {
const CacheFailure(super.message);
}
class NetworkFailure extends Failure {
const NetworkFailure([super.message = 'No internet connection']);
}
import 'package:dartz/dartz.dart';
// Repository returns Either<Failure, Entity>
Future<Either<Failure, User>> getUser(String id) async {
try {
final model = await provider.fetchUser(id);
return Right(model.toEntity());
} on ServerException catch (e) {
return Left(ServerFailure(e.message));
} on NetworkException {
return Left(NetworkFailure());
}
}
// Controller handles Either result
final result = await getUserUseCase('123');
result.fold(
(failure) => _handleError(failure),
(user) => _user.value = user,
);
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kaakati/rails-enterprise-dev --plugin reactree-flutter-dev16 skills in this plugin
/accessibility-patternsAccessibility PatternsWCAG 2.2 Level AA compliance patterns for Flutter applications including Semantics widgets, screen reader support, keyboard navigation, and color contrast requirements/advanced-getx-patternsAdvanced GetX PatternsAdvanced GetX features including Workers, GetxService, SmartManagement, GetConnect, GetSocket, bindings composition, and testing patterns/clean-architecture-patternsOther plugins' skills for the same job