@Service public class ErrorWriterManagerImpl extends java.lang.Object implements ErrorWriterManager, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
ErrorWriterManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
int |
writeError(java.lang.Throwable th,
java.io.OutputStream out,
ErrorFormat format)
Writes the exception to the output stream
|
public int writeError(java.lang.Throwable th, java.io.OutputStream out, ErrorFormat format)
ErrorWriterManager
writeError
in interface ErrorWriterManager
out
- the stream to write the error response toformat
- the format to write the error message inpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException