Tabnine Logo
AvaticaSqlException.getRemoteServer
Code IndexAdd Tabnine 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)

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

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Github Copilot alternatives
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