UPDATE 01-oct
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
* Copyright 2025 Google. This software is provided as-is, without warranty or representation for any use or purpose.
|
||||
* Your use of it is subject to your agreement with Google.
|
||||
*/
|
||||
|
||||
package com.example.exception;
|
||||
|
||||
import java.util.HashMap;
|
||||
@@ -16,7 +21,7 @@ public class GlobalExceptionHandler {
|
||||
|
||||
@ExceptionHandler(DialogflowClientException.class)
|
||||
public ResponseEntity<Map<String, String>> handleDialogflowClientException(
|
||||
DialogflowClientException ex) {
|
||||
DialogflowClientException ex) {
|
||||
Map<String, String> error = new HashMap<>();
|
||||
error.put("error", "Error communicating with Dialogflow");
|
||||
error.put("message", ex.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user