class NestedExceptionUtils {

    /**
     * Build a message for the given base message and root cause.
     * 
     * @param message
     *            the base message
     * @param cause
     *            the root cause
     * @return the full exception message
     */
    public static String buildMessage(String message, Throwable cause) {<FILL_FUNCTION_BODY>}

}

        if (cause != null) {
            StringBuilder sb = new StringBuilder();
            if (message != null) {
                sb.append(message).append("; ");
            }
            sb.append("nested exception is ").append(cause);
            return sb.toString();
        } else {
            return message;
        }
    
<no_super_class>