AppException constructor

AppException({
  1. required dynamic message,
  2. required StackTrace stackTrace,
  3. Exception? innerException,
  4. StackTrace? innerStackTrace,
  5. dynamic log = true,
})

Implementation

AppException({
  required this.message,
  required StackTrace stackTrace,
  Exception? innerException,
  StackTrace? innerStackTrace,
  log = true,
}) {
  if (log) {
    _logger.fine(
      '${runtimeType.toString()} created',
      this,
      stackTrace,
    );
  }
  this.stackTrace = stackTrace;
  this.innerException = innerException;
  this.innerStackTrace = innerStackTrace;
}