innim_remote_error 0.4.5
innim_remote_error: ^0.4.5 copied to clipboard
Remote error object and common codes for Innim projects. Using Dio.
import 'package:innim_remote_error/innim_remote_error.dart';
void main() {
const error = RemoteError(
GlobalErrorCode.domain,
GlobalErrorCode.notFound,
localizedMessage: 'Sorry, not found!',
description: 'Requested element is not found',
);
// ignore: avoid_print
print('Error: $error');
// > Error: RemoteError{domain: Global, code: 1, localizedMessage: Sorry, not found!, description: Requested element is not found, data: null}
}