Search in sources :

Example 1 with ValueSnapshottingException

use of org.gradle.internal.snapshot.ValueSnapshottingException in project gradle by gradle.

the class AbstractValueProcessor method newValueSerializationException.

private ValueSnapshottingException newValueSerializationException(Class<?> valueType, Throwable cause) {
    TreeFormatter formatter = new TreeFormatter();
    formatter.node("Could not serialize value of type ");
    formatter.appendType(valueType);
    return new ValueSnapshottingException(formatter.toString(), cause);
}
Also used : TreeFormatter(org.gradle.internal.logging.text.TreeFormatter) ValueSnapshottingException(org.gradle.internal.snapshot.ValueSnapshottingException)

Aggregations

TreeFormatter (org.gradle.internal.logging.text.TreeFormatter)1 ValueSnapshottingException (org.gradle.internal.snapshot.ValueSnapshottingException)1