mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-04 06:07:12 +08:00
add exception fallback
This commit is contained in:
parent
f6bd0662e4
commit
c458184fab
@ -142,6 +142,8 @@ Before finalizing, verify: CRUD/FLS enforced (SOQL + DML) · explicit sharing ke
|
||||
- Preserve exception cause chains: `new CustomException('message', cause)` (do not replace stack trace with concatenated messages)
|
||||
- Provide a custom exception class per service domain when meaningful
|
||||
- In `@AuraEnabled` methods, catch exceptions and rethrow as `AuraHandledException`
|
||||
- Fallback option: when no meaningful domain exception exists, catch generic `Exception` and either rethrow it or wrap it in a minimal custom exception that preserves the original cause.
|
||||
|
||||
|
||||
### Null Safety
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user