Error Handling
Table of Contents
1. Overview
Error handling is implemented using native Unlang constraints to ensure:
-
Invalid requests are safely ignored
-
Malformed sessions are dropped early
-
System stability is maintained without crashes
-
Processing remains lightweight and predictable
|
All error handling is designed to be silent to avoid unnecessary system overhead. |
2. Handling Strategies
2.1. Missing Variables
-
Uses safe fallback expansion:
%{%{Huawei-Service-Info}:-0} -
Prevents null or undefined attribute failures
-
Ensures default values are applied dynamically
-
Avoids breaking policy execution
|
Always define fallback values for optional attributes. |