类 CodeExceptionHandler
java.lang.Object
cloud.opencode.base.basecode.handler.CodeExceptionHandler
- 作者:
- Jon So, e-mail: ijonso123@gmail.com url: Jon's blog url: project github
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明handler exceptionhandler Exceptionhandler exceptionhandler exceptionhandlerHttpMediaTypeNotSupportedException(org.springframework.web.HttpMediaTypeNotSupportedException e) handler exceptionhandlerNoFoundException(org.springframework.web.servlet.NoHandlerFoundException e) handler exceptioinhandler Exceptionhandler exception
-
构造器详细资料
-
CodeExceptionHandler
public CodeExceptionHandler()
-
-
方法详细资料
-
handleIllegalArgumentException
@ExceptionHandler(java.lang.IllegalArgumentException.class) public CodeResult handleIllegalArgumentException(IllegalArgumentException e) handler exception- 参数:
e-- 返回:
-
handleSecurityException
@ExceptionHandler(java.lang.SecurityException.class) public CodeResult handleSecurityException(SecurityException e) handler exception- 参数:
e-- 返回:
-
handleNullPointerException
@ExceptionHandler(java.lang.NullPointerException.class) public CodeResult handleNullPointerException(NullPointerException e) handler exception- 参数:
e-- 返回:
-
handlerNoFoundException
@ExceptionHandler(org.springframework.web.servlet.NoHandlerFoundException.class) public CodeResult handlerNoFoundException(org.springframework.web.servlet.NoHandlerFoundException e) handler exceptioin- 参数:
e-- 返回:
-
handlerHttpMediaTypeNotSupportedException
@ExceptionHandler(org.springframework.web.HttpMediaTypeNotSupportedException.class) public CodeResult handlerHttpMediaTypeNotSupportedException(org.springframework.web.HttpMediaTypeNotSupportedException e) handler exception- 参数:
e-- 返回:
-
handleCodeException
handler exception- 参数:
e-- 返回:
-
handleRuntimeException
@ExceptionHandler(java.lang.RuntimeException.class) public CodeResult handleRuntimeException(RuntimeException e) handler Exception- 参数:
e-- 返回:
-
handleException
handler Exception- 参数:
e-- 返回:
-