Package | Description |
---|---|
com.sap.cds.services | |
com.sap.cds.services.application | |
com.sap.cds.services.messages |
Modifier and Type | Method and Description |
---|---|
Message |
CoreFactory.createMessage(Message.Severity severity,
String text)
Creates a
Message object. |
Message |
CoreFactory.createMessage(Message.Severity severity,
String text,
Message message)
Creates a
Message object. |
Message |
CoreFactory.createMessage(String text,
ServiceException exception)
Creates a
Message object. |
Modifier and Type | Method and Description |
---|---|
Message |
CoreFactory.createMessage(Message.Severity severity,
String text,
Message message)
Creates a
Message object. |
Modifier and Type | Method and Description |
---|---|
List<Message> |
ErrorResponseEventContext.ErrorResponse.getMessages()
Returns the list of
Message objects to be written in the error response. |
Modifier and Type | Method and Description |
---|---|
void |
ErrorResponseEventContext.ErrorResponse.setMessages(List<Message> messages)
Sets the list of
Message objects to be written in the error response. |
Modifier and Type | Method and Description |
---|---|
Message |
Message.code(String code)
Adds the passed
code to the current message. |
static Message |
Message.create(Message.Severity severity,
String text)
This method creates a standalone instance of
Message that is not added to the Messages of the active RequestContext . |
static Message |
Message.create(Message.Severity severity,
String text,
Message message)
This method creates a standalone instance of
Message that is not added to the Messages of the active RequestContext . |
static Message |
Message.create(String text,
ServiceException exception)
This method creates a standalone instance of
Message that is not added to the Messages of the active RequestContext . |
Message |
Messages.error(String messageOrKey,
Object... params)
Adds a new
Message with severity Message.Severity.ERROR to the current request with the given message text or format and format parameters. |
Message |
Messages.info(String messageOrKey,
Object... params)
Adds a new
Message with severity Message.Severity.INFO to the current request with the given message text or format and format parameters. |
Message |
Message.longTextUrl(String longTextUrl)
Adds the passed
longTextUrl to the current message. |
Message |
Messages.success(String messageOrKey,
Object... params)
Adds a new
Message with severity Message.Severity.SUCCESS to the current request with the given message text or format and format parameters. |
<E extends com.sap.cds.ql.StructuredType<E>> |
Message.target(Class<E> type,
Function<E,Object> path)
Adds the passed path as target to the current
Message . |
Message |
Message.target(Function<com.sap.cds.ql.StructuredType<?>,Object> path)
Adds the passed path as target to the current
Message . |
Message |
Message.target(com.sap.cds.ql.cqn.Path path,
com.sap.cds.reflect.CdsElement element)
Adds the passed path and element as target to the current
Message . |
Message |
Message.target(String target)
Sets the provided string-based target.
|
<E extends com.sap.cds.ql.StructuredType<E>> |
Message.target(String parameter,
Class<E> type,
Function<E,Object> path)
Adds the passed target parameter and path as target to the current
Message . |
Message |
Message.target(String parameter,
Function<com.sap.cds.ql.StructuredType<?>,Object> path)
Adds the passed target parameter and path as target to the current
Message . |
Message |
Message.target(String prefix,
String entity,
Function<com.sap.cds.ql.StructuredType<?>,Object> path)
Deprecated.
no longer supported, use
target(String, Function) instead. |
Message |
Messages.warn(String messageOrKey,
Object... params)
Adds a new
Message with severity Message.Severity.WARNING to the current request with the given message text or format and format parameters. |
Modifier and Type | Method and Description |
---|---|
Stream<Message> |
Messages.stream()
Returns a
Stream of the added messages in the current request context |
Modifier and Type | Method and Description |
---|---|
static Message |
Message.create(Message.Severity severity,
String text,
Message message)
This method creates a standalone instance of
Message that is not added to the Messages of the active RequestContext . |
Copyright © 2022. All rights reserved.