-
public class ErrorUsed by the GiniCaptureNetworkService and GiniCaptureNetworkApi to return error messages.
-
-
Constructor Summary
Constructors Constructor Description Error(String message)Create a new error. Error(String message, Throwable cause)Create a new error with a cause. Error(Integer statusCode, Map<String, List<String>> headers, Throwable exception)Create a new error with status code and headers. Error(FileImportValidator.Error fileImportErrors)Create a new error for file handling
-
Method Summary
Modifier and Type Method Description StringgetMessage()ThrowablegetCause()IntegergetStatusCode()Map<String, List<String>>getHeaders()FileImportValidator.ErrorgetFileImportErrors()-
-
Constructor Detail
-
Error
Error(String message)
Create a new error.- Parameters:
message- error message
-
Error
Error(String message, Throwable cause)
Create a new error with a cause.- Parameters:
message- error messagecause- the cause of the error
-
Error
Error(Integer statusCode, Map<String, List<String>> headers, Throwable exception)
Create a new error with status code and headers.- Parameters:
statusCode- API response status codeheaders- API response headers
-
Error
Error(FileImportValidator.Error fileImportErrors)
Create a new error for file handling- Parameters:
fileImportErrors- import error type
-
-
Method Detail
-
getMessage
@NonNull() String getMessage()
-
getStatusCode
@Nullable() Integer getStatusCode()
-
getFileImportErrors
FileImportValidator.Error getFileImportErrors()
-
-
-
-