Tabnine Logo
ConnectionClosingException.initCause
Code IndexAdd Tabnine to your IDE (free)

How to use
initCause
method
in
org.apache.hadoop.hbase.exceptions.ConnectionClosingException

Best Java code snippets using org.apache.hadoop.hbase.exceptions.ConnectionClosingException.initCause (Showing top 4 results out of 315)

origin: apache/hbase

} else if (exception instanceof ConnectionClosingException) {
 return (ConnectionClosingException) new ConnectionClosingException(
   "Call to " + addr + " failed on local exception: " + exception).initCause(exception);
} else if (exception instanceof ServerTooBusyException) {
origin: org.apache.hbase/hbase-client

} else if (exception instanceof ConnectionClosingException) {
 return (ConnectionClosingException) new ConnectionClosingException(
   "Call to " + addr + " failed on local exception: " + exception).initCause(exception);
} else if (exception instanceof ServerTooBusyException) {
origin: harbby/presto-connectors

/**
 * Takes an Exception and the address we were trying to connect to and return an IOException with
 * the input exception as the cause. The new exception provides the stack trace of the place where
 * the exception is thrown and some extra diagnostics information. If the exception is
 * ConnectException or SocketTimeoutException, return a new one of the same type; Otherwise return
 * an IOException.
 * @param addr target address
 * @param exception the relevant exception
 * @return an exception to throw
 */
protected IOException wrapException(InetSocketAddress addr, Exception exception) {
 if (exception instanceof ConnectException) {
  // connection refused; include the host:port in the error
  return (ConnectException) new ConnectException("Call to " + addr
    + " failed on connection exception: " + exception).initCause(exception);
 } else if (exception instanceof SocketTimeoutException) {
  return (SocketTimeoutException) new SocketTimeoutException("Call to " + addr
    + " failed because " + exception).initCause(exception);
 } else if (exception instanceof ConnectionClosingException) {
  return (ConnectionClosingException) new ConnectionClosingException("Call to " + addr
    + " failed on local exception: " + exception).initCause(exception);
 } else {
  return (IOException) new IOException("Call to " + addr + " failed on local exception: "
    + exception).initCause(exception);
 }
}
origin: com.aliyun.hbase/alihbase-client

} else if (exception instanceof ConnectionClosingException) {
 return (ConnectionClosingException) new ConnectionClosingException(
   "Call to " + addr + " failed on local exception: " + exception).initCause(exception);
} else if (exception instanceof ServerTooBusyException) {
org.apache.hadoop.hbase.exceptionsConnectionClosingExceptioninitCause

Popular methods of ConnectionClosingException

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top PhpStorm 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