Not Implemented Exception (ARCH3156)
Esta página aún no está disponible en tu idioma.
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.
Incorrect
Section titled “Incorrect”class PaymentService { refund(orderId: string): Promise<void> { throw new Error("Not implemented"); }}Correct
Section titled “Correct”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.