@@ -98,26 +98,29 @@ def self.configuration_examples
9898 # END CODE EXAMPLE: filter_configuration
9999 # ----------------------------------------------------------
100100
101+ # rubocop:disable Layout/ExtraSpacing
101102 # ----------------------------------------------------------
102103 # BEGIN CODE EXAMPLE: error_handling_modes
103104 # ----------------------------------------------------------
104105 # Configure error handling modes
105106 modes = config . error_handling_modes
106- modes . logstruct_errors = LogStruct ::ErrorHandlingMode ::Log
107- modes . security_errors = LogStruct ::ErrorHandlingMode ::Report
108- modes . standard_errors = LogStruct ::ErrorHandlingMode ::LogProduction
109- modes . type_checking_errors = LogStruct ::ErrorHandlingMode ::Raise
107+ modes . type_checking_errors = LogStruct ::ErrorHandlingMode ::ReportProduction
108+ modes . logstruct_errors = LogStruct ::ErrorHandlingMode ::ReportProduction
109+ modes . security_errors = LogStruct ::ErrorHandlingMode ::Report
110+ modes . standard_errors = LogStruct ::ErrorHandlingMode ::Raise
110111
111- # Available error handling modes:
112+ # Error handling modes:
113+ # ------------------------------------------------------------
114+ # Ignore: Ignore the error
115+ # Log: Log the error
116+ # Report: Log and report to tracking service without crashing
117+ # LogProduction: Log error in production, raise during dev/test
118+ # ReportProduction: Report in production without crashing, raise during dev/test
119+ # Raise: Always raise the error (reported by tracking service)
112120 # ------------------------------------------------------------
113- # ::Ignore # Completely ignore errors
114- # ::Log # Log errors but don't report them
115- # ::LogProduction # Log in production, raise in development
116- # ::Report # Log and report errors to error service
117- # ::Raise # Always raise errors
118- # ----------------------------------------------------------
119121 # END CODE EXAMPLE: error_handling_modes
120122 # ----------------------------------------------------------
123+ # rubocop:enable Layout/ExtraSpacing
121124 end
122125 end
123126end
0 commit comments