Top Description Fields Constructors
org.apache.logging.log4j

public Class LoggingException

extends RuntimeException
Class Inheritance

Exception thrown when an error occurs while logging. In most cases exceptions will be handled within Log4j but certain Appenders may be configured to allow exceptions to propagate to the application. This is a RuntimeException so that the exception may be thrown in those cases without requiring all Logger methods be contained with try/catch blocks.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
LoggingException(final String
The reason for the exception
message
)

Construct an exception with a message.

public
LoggingException(final String
The reason for the exception
message
,
final Throwable
The underlying cause of the exception
cause
)

Construct an exception with a message and underlying cause.

public
LoggingException(final Throwable
The underlying cause of the exception
cause
)

Construct an exception with an underlying cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

LoggingExceptionback to summary
public LoggingException(final String message)

Construct an exception with a message.

Parameters
message:String

The reason for the exception

LoggingExceptionback to summary
public LoggingException(final String message, final Throwable cause)

Construct an exception with a message and underlying cause.

Parameters
message:String

The reason for the exception

cause:Throwable

The underlying cause of the exception

LoggingExceptionback to summary
public LoggingException(final Throwable cause)

Construct an exception with an underlying cause.

Parameters
cause:Throwable

The underlying cause of the exception