Class GithubControllerAdviceImpl
java.lang.Object
com.winchesters.devopsify.controller.github.GithubControllerAdviceImpl
- All Implemented Interfaces:
GeneralControllerAdvice
,GithubControllerAdvice
@Order(-2147483648)
@ControllerAdvice(assignableTypes=GithubController.class)
public class GithubControllerAdviceImpl
extends Object
implements GithubControllerAdvice
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ErrorResponseDto>
org.springframework.http.ResponseEntity<ErrorResponseDto>
handleException
(org.kohsuke.github.HttpException exception) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.winchesters.devopsify.controller.GeneralControllerAdvice
handleException
Methods inherited from interface com.winchesters.devopsify.controller.github.GithubControllerAdvice
handleGithubException
-
Constructor Details
-
GithubControllerAdviceImpl
public GithubControllerAdviceImpl()
-
-
Method Details
-
handleException
@ExceptionHandler(PersonalAccessTokenPermissionException.class) public org.springframework.http.ResponseEntity<ErrorResponseDto> handleException(PersonalAccessTokenPermissionException exception) -
handleException
@ExceptionHandler(org.kohsuke.github.HttpException.class) public org.springframework.http.ResponseEntity<ErrorResponseDto> handleException(org.kohsuke.github.HttpException exception) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-