Package org.jboss.modcluster
Class Utils
java.lang.Object
org.jboss.modcluster.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeException
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 Details
-
convertToUnchecked
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
-