MaryUtils.getFirstMeaningfulMessage
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using marytts.util.MaryUtils.getFirstMeaningfulMessage (Showing top 5 results out of 315)

origin: marytts/marytts

/**
 * From the given throwable or its cause, or cause's cause, etc., get the first one that has a non-empty message, and return
 * that message.
 * 
 * @param t
 *            t
 * @return the first non-empty message string, or null.
 */
public static String getFirstMeaningfulMessage(Throwable t) {
  if (t == null)
    return null;
  String m = t.getMessage();
  if (m != null && !m.isEmpty()) {
    return m;
  }
  return getFirstMeaningfulMessage(t.getCause());
}
origin: marytts/marytts

/**
 * From the given throwable or its cause, or cause's cause, etc., get the first one that has a non-empty message, and return
 * that message.
 * 
 * @param t
 *            t
 * @return the first non-empty message string, or null.
 */
public static String getFirstMeaningfulMessage(Throwable t) {
  if (t == null)
    return null;
  String m = t.getMessage();
  if (m != null && !m.isEmpty()) {
    return m;
  }
  return getFirstMeaningfulMessage(t.getCause());
}
origin: marytts/marytts

+ MaryUtils.getFirstMeaningfulMessage(e), e);
origin: marytts/marytts

+ MaryUtils.getFirstMeaningfulMessage(e), e);
origin: de.dfki.mary/marytts-runtime

+ MaryUtils.getFirstMeaningfulMessage(e), e);
marytts.utilMaryUtilsgetFirstMeaningfulMessage

Javadoc

From the given throwable or its cause, or cause's cause, etc., get the first one that has a non-empty message, and return that message.

Popular methods of MaryUtils

  • getLogger
  • string2locale
  • normaliseUnicodeLetters
  • locale2xmllang
  • subsumes
  • isLog4jConfigured
  • getThrowableAndCausesAsString
  • romanToInt
  • shellExecute
  • getExtension
  • isWindows
  • availableMemory
  • isWindows,
  • availableMemory,
  • createSelfDeletingTempFile,
  • getNumberDelta,
  • indexOf,
  • isNumber,
  • isNumberDelta,
  • isPercentageDelta,
  • isSemitonesDelta

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JLabel (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)