public class DefaultExceptionTranslator extends Object implements ExceptionTranslator
Constructor and Description |
---|
DefaultExceptionTranslator() |
Modifier and Type | Method and Description |
---|---|
SimpleErrorCodeTranslator |
getSimpleErrorCodeTranslator() |
void |
setSimpleErrorCodeTranslator(SimpleErrorCodeTranslator simpleErrorCodeTranslator) |
String |
translateException(BaseRuntimeException exception)
把exception对应的错误码翻译成对应的错误信息
|
public SimpleErrorCodeTranslator getSimpleErrorCodeTranslator()
public void setSimpleErrorCodeTranslator(SimpleErrorCodeTranslator simpleErrorCodeTranslator)
public String translateException(BaseRuntimeException exception)
ExceptionTranslator
translateException
in interface ExceptionTranslator
Copyright © 2006–2018 TinyGroup. All rights reserved.