Class ExceptionHandling
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
vn.edu.uit.csbu.software_design.software_design_backend.ExceptionHandling
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@ControllerAdvice
public class ExceptionHandling
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
The type Exception handling.
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
PAGE_NOT_FOUND_LOG_CATEGORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHandle livestream not found exception string.Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
handleException, setMessageSource
-
Constructor Details
-
ExceptionHandling
public ExceptionHandling()
-
-
Method Details
-
handleLivestreamNotFoundException
@ExceptionHandler(LivestreamNotFoundException.class) @ResponseStatus(NOT_FOUND) public String handleLivestreamNotFoundException(LayerInstantiationException ex) Handle livestream not found exception string.- Parameters:
ex- the ex- Returns:
- the string
-