Package org.jboss.modcluster
Class Utils
- java.lang.Object
-
- org.jboss.modcluster.Utils
-
public class Utils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 Errorstatic InetSocketAddress
parseSocketAddress(String addressPort, int defaultPort)
-
-
-
Method Detail
-
convertToUnchecked
public 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- Parameters:
t
- the throwable- Returns:
- a RuntimeException based on t
- Throws:
Error
- if t is an Error
-
parseSocketAddress
public static InetSocketAddress parseSocketAddress(String addressPort, int defaultPort) throws UnknownHostException
- Throws:
UnknownHostException
-
-