Error

public void Error(@NonNull() String message)

Create a new error.

Parameters

message

error message


public void Error(@NonNull() String message, @NonNull() Throwable cause)

Create a new error with a cause.

Parameters

message

error message

cause

the cause of the error


public void Error(Integer statusCode, Map<String, List<String>> headers, Throwable exception)

Create a new error with status code and headers.

Parameters

statusCode

API response status code

headers

API response headers


public void Error(FileImportValidator.Error fileImportErrors)

Create a new error for file handling

Parameters

fileImportErrors

import error type