Class Utils

java.lang.Object
org.jboss.modcluster.Utils

public class Utils extends Object
  • Method Details

    • 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