code

public final ErrorEvent.Error.Builder code(String code)

A URI that identifies the error type.


public final ErrorEvent.Error.Builder code(JsonField<String> code)

Sets Builder.code to an arbitrary JSON value.

You should usually call Builder.code with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.