
com.dropbox.core.util.LangUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
A client library for Dropbox's HTTP-based "Core API".
The newest version!
package com.dropbox.core.util;
public class LangUtil
{
public static RuntimeException mkAssert(String messagePrefix, Throwable cause)
{
RuntimeException ae = new RuntimeException(messagePrefix + ": " + cause.getMessage());
ae.initCause(cause);
return ae;
// XXX: Using AssertionError doesn't work for some reason (maybe Android bug). Trying
// to call initCause results in "cause already initialized" exception. Switching to
// RuntimeException worked.
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy