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