public class ServiceExceptionUtilsImpl extends Object implements ServiceExceptionUtils
| Modifier and Type | Field and Description |
|---|---|
static LocalizedMessageProvider |
defaultLocalizedMessageProvider |
static CdsProperties.Errors |
errorsProperties |
| Constructor and Description |
|---|
ServiceExceptionUtilsImpl() |
| Modifier and Type | Method and Description |
|---|---|
CdsProperties.Errors |
getErrorsProperties() |
String |
getLocalizedMessage(String code,
Object[] args,
Locale locale) |
String |
getMessage(String code,
Object[] args) |
MessageTarget |
getMessageTarget(String target) |
<E extends com.sap.cds.ql.StructuredType<E>> |
getMessageTarget(String prefix,
Class<E> entity,
Function<E,Object> path) |
MessageTarget |
getMessageTarget(String prefix,
String entity,
Function<com.sap.cds.ql.StructuredType<?>,Object> path) |
public static LocalizedMessageProvider defaultLocalizedMessageProvider
public static CdsProperties.Errors errorsProperties
public String getMessage(String code, Object[] args)
getMessage in interface ServiceExceptionUtilspublic String getLocalizedMessage(String code, Object[] args, Locale locale)
getLocalizedMessage in interface ServiceExceptionUtilspublic MessageTarget getMessageTarget(String target)
getMessageTarget in interface ServiceExceptionUtilspublic <E extends com.sap.cds.ql.StructuredType<E>> MessageTarget getMessageTarget(String prefix, Class<E> entity, Function<E,Object> path)
getMessageTarget in interface ServiceExceptionUtilspublic MessageTarget getMessageTarget(String prefix, String entity, Function<com.sap.cds.ql.StructuredType<?>,Object> path)
getMessageTarget in interface ServiceExceptionUtilspublic CdsProperties.Errors getErrorsProperties()
getErrorsProperties in interface ServiceExceptionUtilsCopyright © 2021. All rights reserved.