congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AmqpErrorException
Code IndexAdd Tabnine to your IDE (free)

How to use
AmqpErrorException
in
org.eclipse.hono.util

Best Java code snippets using org.eclipse.hono.util.AmqpErrorException (Showing top 4 results out of 315)

origin: eclipse/hono

  /**
   * Gets an AMQP {@link ErrorCondition} based on this exception's error and description.
   * 
   * @return The condition.
   */
  public ErrorCondition asErrorCondition() {
    return ProtonHelper.condition(error.toString(), getMessage());
  }
}
origin: eclipse/hono

  formalCheck.complete();
} else {
  formalCheck.fail(new AmqpErrorException(AmqpError.DECODE_ERROR, "malformed payload"));
            .failedFuture(new AmqpErrorException(AmqpError.ILLEGAL_STATE,
                "unsubscribed reply-to address"));
        } catch (final DecodeException e) {
          return Future
              .failedFuture(new AmqpErrorException(AmqpError.DECODE_ERROR, "malformed payload"));
            .failedFuture(new AmqpErrorException(AmqpError.UNAUTHORIZED_ACCESS, "unauthorized"));
        MessageHelper.rejected(delivery, cause.asErrorCondition());
      } else {
        logger.debug("error processing request [resource: {}, op: {}]: {}", targetAddress,
origin: org.eclipse.hono/hono-service-base

  formalCheck.complete();
} else {
  formalCheck.fail(new AmqpErrorException(AmqpError.DECODE_ERROR, "malformed payload"));
            .failedFuture(new AmqpErrorException(AmqpError.ILLEGAL_STATE,
                "unsubscribed reply-to address"));
        } catch (final DecodeException e) {
          return Future
              .failedFuture(new AmqpErrorException(AmqpError.DECODE_ERROR, "malformed payload"));
            .failedFuture(new AmqpErrorException(AmqpError.UNAUTHORIZED_ACCESS, "unauthorized"));
        MessageHelper.rejected(delivery, cause.asErrorCondition());
      } else {
        logger.debug("error processing request [resource: {}, op: {}]: {}", targetAddress,
origin: org.eclipse.hono/hono-core

  /**
   * Gets an AMQP {@link ErrorCondition} based on this exception's error and description.
   * 
   * @return The condition.
   */
  public ErrorCondition asErrorCondition() {
    return ProtonHelper.condition(error.toString(), getMessage());
  }
}
org.eclipse.hono.utilAmqpErrorException

Javadoc

An exception wrapping an AmqpError.

Most used methods

  • <init>
    Creates a new exception for an error and description.
  • asErrorCondition
    Gets an AMQP ErrorCondition based on this exception's error and description.
  • getMessage

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 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