Codota Logo
AvaticaSqlException.getRemoteServer
Code IndexAdd Codota to your IDE (free)

How to use
getRemoteServer
method
in
org.apache.calcite.avatica.AvaticaSqlException

Best Java code snippets using org.apache.calcite.avatica.AvaticaSqlException.getRemoteServer (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.apache.calcite/calcite-avatica

@Test public void testGetters() {
 final String msg = "My query failed!";
 final int code = 42;
 final String sql = "SELECT foo FROM bar;";
 final String stacktrace = "My Stack Trace";
 final String server = "localhost:8765";
 AvaticaSqlException e = new AvaticaSqlException(msg, sql, code, Arrays.asList(stacktrace),
   server);
 assertTrue(e.getMessage().contains(msg));
 assertEquals(code, e.getErrorCode());
 assertEquals(sql, e.getSQLState());
 assertEquals(1, e.getStackTraces().size());
 assertEquals(stacktrace, e.getStackTraces().get(0));
 assertEquals(server, e.getRemoteServer());
}
origin: apache/calcite-avatica

@Test public void testGetters() {
 final String msg = "My query failed!";
 final int code = 42;
 final String sql = "SELECT foo FROM bar;";
 final String stacktrace = "My Stack Trace";
 final String server = "localhost:8765";
 AvaticaSqlException e = new AvaticaSqlException(msg, sql, code, Arrays.asList(stacktrace),
   server);
 assertTrue(e.getMessage().contains(msg));
 assertEquals(code, e.getErrorCode());
 assertEquals(sql, e.getSQLState());
 assertEquals(1, e.getStackTraces().size());
 assertEquals(stacktrace, e.getStackTraces().get(0));
 assertEquals(server, e.getRemoteServer());
}
origin: org.apache.calcite.avatica/avatica-core

@Test public void testGetters() {
 final String msg = "My query failed!";
 final int code = 42;
 final String sql = "SELECT foo FROM bar;";
 final String stacktrace = "My Stack Trace";
 final String server = "localhost:8765";
 AvaticaSqlException e = new AvaticaSqlException(msg, sql, code, Arrays.asList(stacktrace),
   server);
 assertTrue(e.getMessage().contains(msg));
 assertEquals(code, e.getErrorCode());
 assertEquals(sql, e.getSQLState());
 assertEquals(1, e.getStackTraces().size());
 assertEquals(stacktrace, e.getStackTraces().get(0));
 assertEquals(server, e.getRemoteServer());
}
org.apache.calcite.avaticaAvaticaSqlExceptiongetRemoteServer

Popular methods of AvaticaSqlException

  • <init>
    Construct the Exception with information from the server.
  • getErrorCode
  • getMessage
  • getSQLState
  • getStackTraces
  • printServerStackTrace
  • getErrorMessage

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now