CarsError

public final class CarsError

Container for error list.

Parameters

code

Error code describing the issue

description

A simple description of what the error is.

detailCode

Detailed error code describing the issue.

locationKeyword

The requested location that caused the error.

locationOptions

List for possible locations from which the customer must choose the best one to be re-submitted in the request.

Constructors

Link copied to clipboard
public CarsError CarsError(String code, String description, String detailCode, String locationKeyword, List<CarsLocationOption> locationOptions)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@NotNull()
@Valid()
private final String code
Link copied to clipboard
@NotNull()
@Valid()
private final String description
Link copied to clipboard
@Valid()
private final String detailCode
Link copied to clipboard
@Valid()
private final String locationKeyword
Link copied to clipboard
@Valid()
private final List<CarsLocationOption> locationOptions

Functions

Link copied to clipboard
public final static CarsError.Builder builder()
Link copied to clipboard
public final String getCode()
Link copied to clipboard
public final String getDescription()
Link copied to clipboard
public final String getDetailCode()
Link copied to clipboard
public final String getLocationKeyword()
Link copied to clipboard
Link copied to clipboard