mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 00:58:24 +08:00
fix: 兼容不使用国际化的情况。
This commit is contained in:
parent
7170086004
commit
ab87696d91
@ -65,6 +65,9 @@ public class MybatisFlexException extends RuntimeException {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getMessage(Locale locale) {
|
private String getMessage(Locale locale) {
|
||||||
|
if (pattern == null) {
|
||||||
|
return super.getMessage();
|
||||||
|
}
|
||||||
String localizedString = pattern.getLocalizedString(locale);
|
String localizedString = pattern.getLocalizedString(locale);
|
||||||
return MessageFormat.format(localizedString, arguments);
|
return MessageFormat.format(localizedString, arguments);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user