Skip to content

Commit

Permalink
handling error of stop streaming button
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamSupekar committed Jun 9, 2024
1 parent 4b4d803 commit 4d248bc
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.example.treaders.ExceptionHandling;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;

import java.io.IOException;

@RestControllerAdvice
public class GlobalExceptionHandler extends ResponseEntityExceptionHandler {
@ExceptionHandler(IOException.class)
public void handleIOException(IOException ex) {
// Log the exception or handle it as per your application's requirements
// For example:
System.err.println("IOException occurred: " + ex.getMessage());
}
}

0 comments on commit 4d248bc

Please sign in to comment.