Now.js Framework Documentation
ErrorRecoveryManager
ErrorRecoveryManager
ErrorRecoveryManager - manages error recovery strategies
หน้านี้สร้างจากซอร์สโดยตรงเมื่อ 2026-08-21 คำอธิบายมาจาก JSDoc ในไฟล์
รันซ้ำได้ด้วยdocs_scaffoldเมื่อโค้ดเปลี่ยน อย่าแก้ด้วยมือถ้าตั้งใจให้ generate ต่อ
ที่มา
- ไฟล์:
Now/js/ErrorRecoveryManager.js(242 บรรทัด) - รูปแบบ: object literal (singleton)
เมธอดสาธารณะ (8)
async attemptRecovery(errorInfo, context = {})
Attempt error recovery
async clearCache(config, errorInfo, context)
Clear cache strategy
async enableOfflineMode(config, errorInfo, context)
Enable offline mode
async executeRecoveryStrategy(config, errorInfo, context)
Execute recovery strategy
async navigateToFallback(config, errorInfo, context)
Navigate to fallback route
async refreshToken(config, errorInfo, context)
Refresh token strategy
async reloadPage(config, errorInfo, context)
Reload page strategy
async retryOperation(config, errorInfo, context)
Retry operation strategy
พึ่งพาคลาสอื่น
ApiService · EventManager · NotificationManager · RedirectManager · RouterManager
เหตุการณ์
| Event | เมื่อเกิด | Detail |
|---|---|---|
app:offline |
ตรวจพบว่าออฟไลน์ | {reason} |