Class ServiceError

  • Direct Known Subclasses:
    InvalidArgumentError

    public class ServiceError
    extends Object
    The ServiceError class holds the service error information.
    Author:
    Marcus Portmann
    • 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