public interface IMessageFormatter
Modifier and Type | Method and Description |
---|---|
void |
formatErrorMessage(String mimeType,
String title,
List messages,
StringBuffer messageBuffer) |
void |
formatErrorMessage(String mimeType,
String title,
String message,
StringBuffer messageBuffer) |
void |
formatFailureMessage(String mimeType,
IRuntimeContext context,
StringBuffer messageBuffer) |
void |
formatFailureMessage(String mimeType,
IRuntimeContext context,
StringBuffer messageBuffer,
List defaultMessages) |
default void |
formatFailureMessage(String mimeType,
IRuntimeContext context,
StringBuffer messageBuffer,
List defaultMessages,
boolean showStacktrace) |
void |
formatResultSetAsHTMLRows(org.pentaho.commons.connection.IPentahoResultSet resultSet,
StringBuffer messageBuffer) |
void |
formatSuccessMessage(String mimeType,
IRuntimeContext context,
StringBuffer messageBuffer,
boolean doMessages) |
void |
formatSuccessMessage(String mimeType,
IRuntimeContext context,
StringBuffer messageBuffer,
boolean doMessages,
boolean doWrapper) |
String |
getFirstError(List messages)
If PentahoMessenger.getUserString("ERROR") returns the string: "Error: {0} ({1})" (which is the case for
English) Find the substring before the first "{".
|
void formatErrorMessage(String mimeType, String title, String message, StringBuffer messageBuffer)
String getFirstError(List messages)
messages
- void formatErrorMessage(String mimeType, String title, List messages, StringBuffer messageBuffer)
void formatFailureMessage(String mimeType, IRuntimeContext context, StringBuffer messageBuffer, List defaultMessages)
default void formatFailureMessage(String mimeType, IRuntimeContext context, StringBuffer messageBuffer, List defaultMessages, boolean showStacktrace)
showStacktrace
- if true, exception stacktrace (if it is in messages)
will be put into formatted message for debug purposesvoid formatFailureMessage(String mimeType, IRuntimeContext context, StringBuffer messageBuffer)
void formatResultSetAsHTMLRows(org.pentaho.commons.connection.IPentahoResultSet resultSet, StringBuffer messageBuffer)
void formatSuccessMessage(String mimeType, IRuntimeContext context, StringBuffer messageBuffer, boolean doMessages)
void formatSuccessMessage(String mimeType, IRuntimeContext context, StringBuffer messageBuffer, boolean doMessages, boolean doWrapper)
Copyright © 2020 Hitachi Vantara. All rights reserved.