Example usage for com.fasterxml.jackson.databind.node JsonNodeType toString

List of usage examples for com.fasterxml.jackson.databind.node JsonNodeType toString

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.node JsonNodeType toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:org.camunda.spin.impl.json.jackson.JacksonJsonLogger.java

/**
 * Exception handler if we are unable to parse a json value into a java representation
 *
 * @param expectedType Name of the expected Type
 * @param type Type of the json node/* w ww .  j a v  a2 s. c o m*/
 * @return SpinJsonDataFormatException
 */
public SpinJsonDataFormatException unableToParseValue(String expectedType, JsonNodeType type) {
    return new SpinJsonDataFormatException(
            exceptionMessage("002", "Expected '{}', got '{}'", expectedType, type.toString()));
}