Tabnine Logo
GaiException
Code IndexAdd Tabnine to your IDE (free)

How to use
GaiException
in
libcore.io

Best Java code snippets using libcore.io.GaiException (Showing top 20 results out of 315)

origin: robovm/robovm

if (gaiException.getCause() instanceof ErrnoException) {
  if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
    throw new SecurityException("Permission denied (missing INTERNET permission?)", gaiException);
throw gaiException.rethrowAsUnknownHostException(detailMessage);
origin: robovm/robovm

  public UnknownHostException rethrowAsUnknownHostException() throws UnknownHostException {
    throw rethrowAsUnknownHostException(getMessage());
  }
}
origin: robovm/robovm

private static InetAddress getHostByAddrImpl(InetAddress address) throws UnknownHostException {
  BlockGuard.getThreadPolicy().onNetwork();
  try {
    String hostname = Libcore.os.getnameinfo(address, NI_NAMEREQD);
    return makeInetAddress(address.ipaddress.clone(), hostname);
  } catch (GaiException gaiException) {
    throw gaiException.rethrowAsUnknownHostException();
  }
}
origin: com.gluonhq/robovm-rt

private static InetAddress getHostByAddrImpl(InetAddress address) throws UnknownHostException {
  BlockGuard.getThreadPolicy().onNetwork();
  try {
    String hostname = Libcore.os.getnameinfo(address, NI_NAMEREQD);
    return makeInetAddress(address.ipaddress.clone(), hostname);
  } catch (GaiException gaiException) {
    throw gaiException.rethrowAsUnknownHostException();
  }
}
origin: MobiVM/robovm

  public UnknownHostException rethrowAsUnknownHostException() throws UnknownHostException {
    throw rethrowAsUnknownHostException(getMessage());
  }
}
origin: MobiVM/robovm

if (gaiException.getCause() instanceof ErrnoException) {
  if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
    throw new SecurityException("Permission denied (missing INTERNET permission?)", gaiException);
throw gaiException.rethrowAsUnknownHostException(detailMessage);
origin: com.bugvm/bugvm-rt

private static InetAddress getHostByAddrImpl(InetAddress address) throws UnknownHostException {
  BlockGuard.getThreadPolicy().onNetwork();
  try {
    String hostname = Libcore.os.getnameinfo(address, NI_NAMEREQD);
    return makeInetAddress(address.ipaddress.clone(), hostname);
  } catch (GaiException gaiException) {
    throw gaiException.rethrowAsUnknownHostException();
  }
}
origin: com.mobidevelop.robovm/robovm-rt

  public UnknownHostException rethrowAsUnknownHostException() throws UnknownHostException {
    throw rethrowAsUnknownHostException(getMessage());
  }
}
origin: com.bugvm/bugvm-rt

if (gaiException.getCause() instanceof ErrnoException) {
  if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
    throw new SecurityException("Permission denied (missing INTERNET permission?)", gaiException);
throw gaiException.rethrowAsUnknownHostException(detailMessage);
origin: ibinti/bugvm

private static InetAddress getHostByAddrImpl(InetAddress address) throws UnknownHostException {
  BlockGuard.getThreadPolicy().onNetwork();
  try {
    String hostname = Libcore.os.getnameinfo(address, NI_NAMEREQD);
    return makeInetAddress(address.ipaddress.clone(), hostname);
  } catch (GaiException gaiException) {
    throw gaiException.rethrowAsUnknownHostException();
  }
}
origin: com.bugvm/bugvm-rt

  public UnknownHostException rethrowAsUnknownHostException() throws UnknownHostException {
    throw rethrowAsUnknownHostException(getMessage());
  }
}
origin: ibinti/bugvm

if (gaiException.getCause() instanceof ErrnoException) {
  if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
    throw new SecurityException("Permission denied (missing INTERNET permission?)", gaiException);
throw gaiException.rethrowAsUnknownHostException(detailMessage);
origin: MobiVM/robovm

private static InetAddress getHostByAddrImpl(InetAddress address) throws UnknownHostException {
  BlockGuard.getThreadPolicy().onNetwork();
  try {
    String hostname = Libcore.os.getnameinfo(address, NI_NAMEREQD);
    return makeInetAddress(address.ipaddress.clone(), hostname);
  } catch (GaiException gaiException) {
    throw gaiException.rethrowAsUnknownHostException();
  }
}
origin: com.gluonhq/robovm-rt

  public UnknownHostException rethrowAsUnknownHostException() throws UnknownHostException {
    throw rethrowAsUnknownHostException(getMessage());
  }
}
origin: com.mobidevelop.robovm/robovm-rt

if (gaiException.getCause() instanceof ErrnoException) {
  if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
    throw new SecurityException("Permission denied (missing INTERNET permission?)", gaiException);
throw gaiException.rethrowAsUnknownHostException(detailMessage);
origin: FlexoVM/flexovm

private static InetAddress getHostByAddrImpl(InetAddress address) throws UnknownHostException {
  BlockGuard.getThreadPolicy().onNetwork();
  try {
    String hostname = Libcore.os.getnameinfo(address, NI_NAMEREQD);
    return makeInetAddress(address.ipaddress.clone(), hostname);
  } catch (GaiException gaiException) {
    throw gaiException.rethrowAsUnknownHostException();
  }
}
origin: ibinti/bugvm

  public UnknownHostException rethrowAsUnknownHostException() throws UnknownHostException {
    throw rethrowAsUnknownHostException(getMessage());
  }
}
origin: com.gluonhq/robovm-rt

if (gaiException.getCause() instanceof ErrnoException) {
  if (((ErrnoException) gaiException.getCause()).errno == EACCES) {
    throw new SecurityException("Permission denied (missing INTERNET permission?)", gaiException);
throw gaiException.rethrowAsUnknownHostException(detailMessage);
origin: com.mobidevelop.robovm/robovm-rt

private static InetAddress getHostByAddrImpl(InetAddress address) throws UnknownHostException {
  BlockGuard.getThreadPolicy().onNetwork();
  try {
    String hostname = Libcore.os.getnameinfo(address, NI_NAMEREQD);
    return makeInetAddress(address.ipaddress.clone(), hostname);
  } catch (GaiException gaiException) {
    throw gaiException.rethrowAsUnknownHostException();
  }
}
origin: FlexoVM/flexovm

  public UnknownHostException rethrowAsUnknownHostException() throws UnknownHostException {
    throw rethrowAsUnknownHostException(getMessage());
  }
}
libcore.ioGaiException

Javadoc

An unchecked exception thrown when the Os getaddrinfo or getnameinfomethods fail. This exception contains the native error value, for comparison against the GAI_ constants in OsConstants, should sophisticated callers need to adjust their behavior based on the exact failure.

Most used methods

  • getCause
  • getMessage
    Converts the stashed function name and error value to a human-readable string. We do this here rathe
  • rethrowAsUnknownHostException

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now