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

Not Implemented Exception (ARCH4156)

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

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

Placeholder throws like UnsupportedOperationException("not implemented") are normal during development, but if left in shipped code they cause unexpected runtime crashes.

public BigDecimal calculateTax(Order order) {
throw new UnsupportedOperationException("not implemented");
}
public BigDecimal calculateTax(Order order) {
return order.subtotal()
.multiply(taxRateFor(order.region()));
}

Replace placeholder throws with a real implementation, or mark the method with @Deprecated/an issue if intentionally left unfinished.