Class InvalidArgumentError
- java.lang.Object
-
- africa.absa.inception.core.service.ServiceError
-
- africa.absa.inception.core.service.InvalidArgumentError
-
- All Implemented Interfaces:
Serializable
public class InvalidArgumentError extends ServiceError implements Serializable
The InvalidArgumentError class holds the invalid argument error information.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidArgumentError()Constructs a new InvalidArgumentError.InvalidArgumentError(String message, String parameter, List<ValidationError> validationErrors)Constructs a new InvalidArgumentError.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParameter()Returns the name of the parameter associated with the invalid argument error.List<ValidationError>getValidationErrors()Returns the optional validation errors associated with the invalid argument error.-
Methods inherited from class africa.absa.inception.core.service.ServiceError
getMessage, getTimestamp
-
-
-
-
Constructor Detail
-
InvalidArgumentError
public InvalidArgumentError()
Constructs a new InvalidArgumentError.
-
InvalidArgumentError
public InvalidArgumentError(String message, String parameter, List<ValidationError> validationErrors)
Constructs a new InvalidArgumentError.- Parameters:
message- the message for the invalid argument errorparameter- the name of the parameter associated with the invalid argument errorvalidationErrors- the validation errors associated with the invalid argument
-
-
Method Detail
-
getParameter
public String getParameter()
Returns the name of the parameter associated with the invalid argument error.- Returns:
- the name of the parameter associated with the invalid argument error
-
getValidationErrors
public List<ValidationError> getValidationErrors()
Returns the optional validation errors associated with the invalid argument error.- Returns:
- the optional validation errors associated with the invalid argument error
-
-