Learn comprehensive logging & error handling strategies for robust social.plus applications.
observeNetworkActivities()
function provides real-time insights into all HTTP requests and responses within the SDK, enabling effective debugging and performance analysis.
High Memory Usage
Performance Impact
Log Volume
Authentication Errors (400100-400199)
Code | Error | Description |
---|---|---|
400100 | UnauthorizedError | User not authenticated or invalid token |
400101 | TokenExpired | Authentication token has expired |
Permission Errors (400300-400399)
Code | Error | Description |
---|---|---|
400301 | PermissionDenied | User lacks permission for the action |
400302 | UserIsMuted | Muted user attempting to send message |
400304 | UserIsBanned | Banned user accessing restricted content |
400312 | GlobalBanError | Globally banned user performing any action |
Content Moderation (400307-400320)
Code | Error | Description |
---|---|---|
400307 | MaxRepetitionExceed | Too many messages with blocked content |
400308 | BanWordFound | Message contains blocked words |
400309 | LinkNotAllowed | Message contains non-whitelisted links |
400314 | UnsafeContent | Content flagged by AI moderation |
Data & Business Logic (400000-400999)
Code | Error | Description |
---|---|---|
400000 | BadRequestError | Invalid request parameters |
400315 | DuplicateEntryError | Duplicate display name or identifier |
400400 | ItemNotFound | Requested resource not found |
400900 | Conflict | Conflicting data operation |
System Errors (500000+)
Code | Error | Description |
---|---|---|
500000 | BusinessError | Internal system error |
Code | Error | Description |
---|---|---|
800000 | Unknown | Uncategorized client-side error |
800110 | InvalidParameter | Invalid parameter data type |
800210 | ConnectionError | Network connectivity issues |