Class ServiceError
- java.lang.Object
-
- africa.absa.inception.core.service.ServiceError
-
- Direct Known Subclasses:
InvalidArgumentError
public class ServiceError extends Object
The ServiceError class holds the service error information.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description ServiceError()Constructs a new ServiceError.ServiceError(String message)Constructs a new ServiceError.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Returns the message for the service error.LocalDateTimegetTimestamp()Returns the date and time the service error occurred.
-
-
-
Constructor Detail
-
ServiceError
public ServiceError()
Constructs a new ServiceError.
-
ServiceError
public ServiceError(String message)
Constructs a new ServiceError.- Parameters:
message- the message for the service error
-
-
Method Detail
-
getMessage
public String getMessage()
Returns the message for the service error.- Returns:
- the message for the service error
-
getTimestamp
public LocalDateTime getTimestamp()
Returns the date and time the service error occurred.- Returns:
- the date and time the service error occurred
-
-