public abstract class AbstractPSErrorHandler extends Object implements IPSErrorHandler
IPSErrorHandler.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPSErrorHandler() |
protected |
AbstractPSErrorHandler(IPSErrorHandler aNestedErrorHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(com.phloc.commons.io.IReadableResource aRes,
IPSElement aSourceElement,
String sMessage,
Throwable t)
Emit an error
|
IPSErrorHandler |
getNestedErrorHandler() |
protected abstract void |
handle(com.phloc.commons.io.IReadableResource aRes,
com.phloc.commons.error.EErrorLevel eErrorLevel,
IPSElement aSourceElement,
String sMessage,
Throwable t) |
String |
toString() |
void |
warn(com.phloc.commons.io.IReadableResource aRes,
IPSElement aSourceElement,
String sMessage)
Emit a warning
|
protected AbstractPSErrorHandler()
protected AbstractPSErrorHandler(@Nullable IPSErrorHandler aNestedErrorHandler)
@Nullable public IPSErrorHandler getNestedErrorHandler()
protected abstract void handle(@Nullable com.phloc.commons.io.IReadableResource aRes, @Nonnull com.phloc.commons.error.EErrorLevel eErrorLevel, @Nonnull IPSElement aSourceElement, @Nonnull String sMessage, @Nullable Throwable t)
public final void warn(@Nullable com.phloc.commons.io.IReadableResource aRes, @Nonnull IPSElement aSourceElement, @Nonnull String sMessage)
IPSErrorHandlerwarn in interface IPSErrorHandleraRes - The resource in which the error occurred. May be null.aSourceElement - The source element where the warning is encountered. Never
null.sMessage - The main warning message. Never null.public final void error(@Nullable com.phloc.commons.io.IReadableResource aRes, @Nonnull IPSElement aSourceElement, @Nonnull String sMessage, @Nullable Throwable t)
IPSErrorHandlererror in interface IPSErrorHandleraRes - The resource in which the error occurred. MAy be null.aSourceElement - The source element where the warning is encountered. Never
null.sMessage - The main warning message. Never null.t - An optional exception that is the source of the error. May be
null.Copyright © 2006–2014 phloc systems. All rights reserved.