congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JsonTypeNotParsableException$Builder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.ditto.signals.base.JsonTypeNotParsableException$Builder
constructor

Best Java code snippets using org.eclipse.ditto.signals.base.JsonTypeNotParsableException$Builder.<init> (Showing top 6 results out of 315)

origin: org.eclipse.ditto/ditto-signals-base

/**
 * Constructs a new {@code JsonTypeNotParsableException} object with the exception message extracted from the
 * given JSON object.
 *
 * @param jsonObject the JSON to read the {@link JsonFields#MESSAGE} field from.
 * @param dittoHeaders the headers of the command which resulted in this exception.
 * @return the new JsonTypeNotParsableException.
 * @throws org.eclipse.ditto.json.JsonMissingFieldException if the {@code jsonObject} does not have the {@link
 * JsonFields#MESSAGE} field.
 */
public static JsonTypeNotParsableException fromJson(final JsonObject jsonObject,
    final DittoHeaders dittoHeaders) {
  return new Builder()
      .dittoHeaders(dittoHeaders)
      .message(readMessage(jsonObject))
      .description(readDescription(jsonObject).orElse(DEFAULT_DESCRIPTION))
      .href(readHRef(jsonObject).orElse(null))
      .build();
}
origin: eclipse/ditto

/**
 * Constructs a new {@code JsonTypeNotParsableException} object with the exception message extracted from the
 * given JSON object.
 *
 * @param jsonObject the JSON to read the {@link JsonFields#MESSAGE} field from.
 * @param dittoHeaders the headers of the command which resulted in this exception.
 * @return the new JsonTypeNotParsableException.
 * @throws org.eclipse.ditto.json.JsonMissingFieldException if the {@code jsonObject} does not have the {@link
 * JsonFields#MESSAGE} field.
 */
public static JsonTypeNotParsableException fromJson(final JsonObject jsonObject,
    final DittoHeaders dittoHeaders) {
  return new Builder()
      .dittoHeaders(dittoHeaders)
      .message(readMessage(jsonObject))
      .description(readDescription(jsonObject).orElse(DEFAULT_DESCRIPTION))
      .href(readHRef(jsonObject).orElse(null))
      .build();
}
origin: eclipse/ditto

/**
 * Constructs a new {@code JsonTypeNotParsableException} object with given message.
 *
 * @param message detail message. This message can be later retrieved by the {@link #getMessage()} method.
 * @param dittoHeaders the headers of the command which resulted in this exception.
 * @return the new JsonTypeNotParsableException.
 */
public static JsonTypeNotParsableException fromMessage(final String message, final DittoHeaders dittoHeaders) {
  return new Builder()
      .dittoHeaders(dittoHeaders)
      .message(message)
      .build();
}
origin: org.eclipse.ditto/ditto-signals-base

/**
 * Constructs a new {@code JsonTypeNotParsableException} object with given message.
 *
 * @param message detail message. This message can be later retrieved by the {@link #getMessage()} method.
 * @param dittoHeaders the headers of the command which resulted in this exception.
 * @return the new JsonTypeNotParsableException.
 */
public static JsonTypeNotParsableException fromMessage(final String message, final DittoHeaders dittoHeaders) {
  return new Builder()
      .dittoHeaders(dittoHeaders)
      .message(message)
      .build();
}
origin: eclipse/ditto

/**
 * A mutable builder for a {@code JsonTypeNotParsableException}.
 *
 * @param type the not supported type.
 * @param registryName the name of the registry which did not support the type.
 * @return the builder.
 */
public static Builder newBuilder(final String type, final String registryName) {
  return new Builder(type, registryName);
}
origin: org.eclipse.ditto/ditto-signals-base

/**
 * A mutable builder for a {@code JsonTypeNotParsableException}.
 *
 * @param type the not supported type.
 * @param registryName the name of the registry which did not support the type.
 * @return the builder.
 */
public static Builder newBuilder(final String type, final String registryName) {
  return new Builder(type, registryName);
}
org.eclipse.ditto.signals.baseJsonTypeNotParsableException$Builder<init>

Popular methods of JsonTypeNotParsableException$Builder

  • description
  • dittoHeaders
  • message

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • BoxLayout (javax.swing)
  • JFrame (javax.swing)
  • CodeWhisperer 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