error static method
Implementation
static void error(String message, [dynamic error, StackTrace? stackTrace]) {
// Only log errors without sensitive information
// Error messages are sanitized to not expose URLs or endpoints
if (_loggingEnabled && error != null) {
// Log error without sensitive details
dev.log('Error occurred', level: 1000, name: 'FinanceSDK', error: error, stackTrace: stackTrace);
}
}