public class RuntimeExceptionWithAttachments extends java.lang.RuntimeException implements ExceptionWithAttachments
Constructor and Description |
---|
RuntimeExceptionWithAttachments(java.lang.String message,
Attachment... attachments) |
RuntimeExceptionWithAttachments(java.lang.String userMessage,
java.lang.String details,
Attachment... attachments)
Corresponds to
Logger.error(String, Throwable, Attachment...)
(LOG.error(userMessage, new RuntimeException(details), attachments) ). |
RuntimeExceptionWithAttachments(java.lang.String message,
java.lang.Throwable cause,
Attachment... attachments) |
RuntimeExceptionWithAttachments(java.lang.Throwable cause,
Attachment... attachments) |
Modifier and Type | Method and Description |
---|---|
Attachment [] |
getAttachments() |
java.lang.String |
getUserMessage() |
public RuntimeExceptionWithAttachments(java.lang.String message, Attachment... attachments)
public RuntimeExceptionWithAttachments(java.lang.Throwable cause, Attachment... attachments)
public RuntimeExceptionWithAttachments(java.lang.String message, java.lang.Throwable cause, Attachment... attachments)
public RuntimeExceptionWithAttachments(java.lang.String userMessage, java.lang.String details, Attachment... attachments)
Logger.error(String, Throwable, Attachment...)
(LOG.error(userMessage, new RuntimeException(details), attachments)
).public java.lang.String getUserMessage()
public Attachment [] getAttachments()
getAttachments
in interface ExceptionWithAttachments