Interface ErrorLogArgProvider


public interface ErrorLogArgProvider
A provider of the args required for error log.
Since:
1.2.6
Author:
raccoonback
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the exception that occurred.
    Returns the date-time of the moment when the exception occurred.
    @Nullable HttpServerInfos
    Returns information about the HTTP server-side connection information.
    @Nullable SocketAddress
    Returns the address of the remote peer or possibly null in case of Unix Domain Sockets.
  • Method Details

    • errorDateTime

      ZonedDateTime errorDateTime()
      Returns the date-time of the moment when the exception occurred.
      Returns:
      zoned date-time
    • remoteAddress

      @Nullable SocketAddress remoteAddress()
      Returns the address of the remote peer or possibly null in case of Unix Domain Sockets.
      Returns:
      the peer's address
    • httpServerInfos

      @Nullable HttpServerInfos httpServerInfos()
      Returns information about the HTTP server-side connection information.

      Note that the ConnectionInformation.remoteAddress() will return the forwarded remote client address if the server is configured in forwarded mode.

      Returns:
      HTTP server-side connection information
      See Also:
    • cause

      Throwable cause()
      Returns the exception that occurred.
      Returns:
      exception