tom_basics 1.0.0 copy "tom_basics: ^1.0.0" to clipboard
tom_basics: ^1.0.0 copied to clipboard

Basic utilities for the TOM framework including exception handling with UUID tracking.

example/tom_basics_example.dart

import 'package:tom_basics/tom_basics.dart';

void main() {
  // Configure logging
  tomLog.setLogLevel(TomLogLevel.development);
  tomLog.info('Application starting...');

  try {
    throw TomBaseException('EXAMPLE_ERROR', 'Something went wrong');
  } on TomBaseException catch (e) {
    tomLog.error('Caught exception: ${e.key} - ${e.defaultUserMessage}');
    print('Exception UUID: ${e.uuid}');
  }

  tomLog.info('Application finished.');
}
0
likes
160
points
10
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Basic utilities for the TOM framework including exception handling with UUID tracking.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

http, stack_trace, uuid

More

Packages that depend on tom_basics