@@ -275,14 +275,14 @@ def send_peer_cancellation(nested_request_id:, related_request_id: nil, reason:
275275 def notify_elicitation_complete ( elicitation_id :)
276276 send_to_transport ( Methods ::NOTIFICATIONS_ELICITATION_COMPLETE , { elicitationId : elicitation_id } )
277277 rescue => e
278- @server . report_exception ( e , notification : "elicitation_complete" )
278+ @server . configuration . exception_reporter . call ( e , { notification : "elicitation_complete" } )
279279 end
280280
281281 # Sends a resource updated notification to this session only.
282282 def notify_resources_updated ( uri :)
283283 send_to_transport ( Methods ::NOTIFICATIONS_RESOURCES_UPDATED , { "uri" => uri } )
284284 rescue => e
285- @server . report_exception ( e , notification : "resources_updated" )
285+ @server . configuration . exception_reporter . call ( e , { notification : "resources_updated" } )
286286 end
287287
288288 # Sends a progress notification to this session only.
@@ -296,7 +296,7 @@ def notify_progress(progress_token:, progress:, total: nil, message: nil, relate
296296
297297 send_to_transport ( Methods ::NOTIFICATIONS_PROGRESS , params , related_request_id : related_request_id )
298298 rescue => e
299- @server . report_exception ( e , notification : "progress" )
299+ @server . configuration . exception_reporter . call ( e , { notification : "progress" } )
300300 end
301301
302302 # Sends a log message notification to this session only.
@@ -320,7 +320,7 @@ def notify_log_message(data:, level:, logger: nil, related_request_id: nil)
320320
321321 send_to_transport ( Methods ::NOTIFICATIONS_MESSAGE , params , related_request_id : related_request_id )
322322 rescue => e
323- @server . report_exception ( e , { notification : "log_message" } )
323+ @server . configuration . exception_reporter . call ( e , { notification : "log_message" } )
324324 end
325325
326326 private
0 commit comments