Tabnine Logo
Promise.getError
Code IndexAdd Tabnine to your IDE (free)

How to use
getError
method
in
org.nustaq.kontraktor.Promise

Best Java code snippets using org.nustaq.kontraktor.Promise.getError (Showing top 3 results out of 315)

origin: RuedigerMoeller/kontraktor

private T awaitHelper() {
  if ( Actor.isError(getError()) ) {
    if ( getError() instanceof Throwable ) {
      FSTUtil.<RuntimeException>rethrow((Throwable) getError());
      return null; // never reached
    }
    else {
      if ( getError() == Timeout.INSTANCE ) {
        throw new KTimeoutException();
      }
      throw new AwaitException(getError());
    }
  } else {
    return get();
  }
}
origin: de.ruedigermoeller/kontraktor

private T awaitHelper() {
  if ( Actor.isError(getError()) ) {
    if ( getError() instanceof Throwable ) {
      FSTUtil.<RuntimeException>rethrow((Throwable) getError());
      return null; // never reached
    }
    else {
      if ( getError() == Timeout.INSTANCE ) {
        throw new KTimeoutException();
      }
      throw new AwaitException(getError());
    }
  } else {
    return get();
  }
}
origin: de.ruedigermoeller/kontraktor-http

if ( httpResponsePromise != null ) {
  if ( httpResponsePromise.isSettled() ) {
    return complete(httpResponsePromise.get(),httpResponsePromise.getError());
  } else {
    try {
    return complete(httpResponsePromise.get(),httpResponsePromise.getError());
org.nustaq.kontraktorPromisegetError

Javadoc

see IPromise (inheriting Callback) interface

Popular methods of Promise

  • <init>
    create a settled Promise by either providing an result or error.
  • complete
    see IPromise (inheriting Callback) interface
  • reject
  • resolve
  • await
    see IPromise (inheriting Callback) interface
  • get
    see IPromise (inheriting Callback) interface
  • isSettled
    see IPromise (inheriting Callback) interface
  • awaitHelper
  • awaitPromise
    see IPromise (inheriting Callback) interface
  • finallyDo
    same as then, but avoid creation of new promise
  • getLast
    see IPromise (inheriting Callback) interface
  • getNext
    special method for tricky things. Creates a nextFuture or returns it. current
  • getLast,
  • getNext,
  • then,
  • timedOut

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Notification (javax.management)
  • Join (org.hibernate.mapping)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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