Class ExceptionController

java.lang.Object
com.Server.controller.ExceptionController

@ControllerAdvice
public class ExceptionController
extends java.lang.Object
Exception Handle controller
Since:
2020-05-14.
Version:
1.0
Author:
Krystian Cwioro Kamil Bieniasz Damian Mierzynski.
  • Constructor Summary

    Constructors
    Constructor Description
    ExceptionController()  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.http.ResponseEntity<MessageResponse> exception​(java.lang.RuntimeException exception)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExceptionController

      public ExceptionController()
  • Method Details

    • exception

      @ExceptionHandler({java.text.ParseException.class,org.springframework.dao.DataAccessException.class,java.lang.IllegalArgumentException.class,WrongDataException.class}) public org.springframework.http.ResponseEntity<MessageResponse> exception​(java.lang.RuntimeException exception)