تخطَّ إلى المحتوى

Not Implemented Exception (ARCH3156)

هذا المحتوى غير متوفر بلغتك بعد.

Key typescript.logging.not-implemented · Severity warning · Category logging

NotImplemented-style placeholder errors are fine during development but must not remain in shipped code paths. They crash at runtime when invoked.

class PaymentService {
refund(orderId: string): Promise<void> {
throw new Error("Not implemented");
}
}
class PaymentService {
async refund(orderId: string): Promise<void> {
const order = await this.repo.find(orderId);
await this.gateway.reverse(order.transactionId);
await this.repo.markRefunded(orderId);
}
}

Replace placeholder errors with a real implementation or remove the path before shipping.