public class Incident extends Object
Exceptions
and passed on to ExceptionHandler
.Modifier | Constructor and Description |
---|---|
protected |
Incident(String category,
String location,
List<Tuple<String,String>> mdc,
HandledException exception) |
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
Returns the category (logger name) which was used to log the exception.
|
HandledException |
getException()
Returns the underlying exception.
|
String |
getLocation()
Returns an unique string describing the location where the incident occurred.
|
List<Tuple<String,String>> |
getMDC()
Returns the mapped diagnostic context describing the exact situation of the error.
|
long |
getTimestamp()
Returns the timestamp when this incident was created.
|
String |
getTimestampAsString()
Returns the timestamp when this incident was created as string.
|
public String getCategory()
public String getLocation()
public List<Tuple<String,String>> getMDC()
public HandledException getException()
public String getTimestampAsString()
public long getTimestamp()
Copyright © 2018. All rights reserved.