public abstract class AbstractNoticeGlobalExceptionHandler extends Thread implements GlobalExceptionHandler, org.springframework.beans.factory.InitializingBean
Thread.State, Thread.UncaughtExceptionHandler| 限定符和类型 | 字段和说明 |
|---|---|
protected ExceptionHandleProperties |
config |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractNoticeGlobalExceptionHandler(ExceptionHandleProperties config,
String applicationName) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
handle(Throwable throwable) |
void |
run() |
abstract ExceptionNoticeResponse |
send(ExceptionMessage sendMessage)
发送通知
|
ExceptionMessage |
toMessage(Throwable t) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected final ExceptionHandleProperties config
protected AbstractNoticeGlobalExceptionHandler(ExceptionHandleProperties config, String applicationName)
public ExceptionMessage toMessage(Throwable t)
public abstract ExceptionNoticeResponse send(ExceptionMessage sendMessage)
sendMessage - 发送的消息public void handle(Throwable throwable)
handle 在接口中 GlobalExceptionHandlerpublic void afterPropertiesSet()
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanCopyright © 2023. All rights reserved.