public class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static RuntimeException |
convertToUnchecked(Throwable t)
Analyzes the type of the given Throwable, handing it back if it is a RuntimeException, wrapping it in a RuntimeException
if it is a checked exception, or throwing it if it is an Error
|
static InetSocketAddress |
parseSocketAddress(String addressPort,
int defaultPort) |
public static RuntimeException convertToUnchecked(Throwable t)
t - the throwableError - if t is an Errorpublic static InetSocketAddress parseSocketAddress(String addressPort, int defaultPort) throws UnknownHostException
UnknownHostExceptionCopyright © 2023 JBoss by Red Hat. All rights reserved.