public class SimpleErrorCodeTranslator extends Object implements ErrorCodeTranslator
Constructor and Description |
---|
SimpleErrorCodeTranslator() |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode(Error error)
显示要进行翻译的异常号
|
String |
translate(Error error)
异常号翻译方法
|
public String translate(Error error)
ErrorCodeTranslator
translate
in interface ErrorCodeTranslator
public String getErrorCode(Error error)
ErrorCodeTranslator
getErrorCode
in interface ErrorCodeTranslator
Copyright © 2006–2018 TinyGroup. All rights reserved.