18 using System.Collections.Generic;
20 namespace Deveel.Data.Diagnostics {
24 throw new ArgumentNullException(
"error");
27 ErrorCode = errorCode;
31 public Exception
Error {
get;
private set; }
33 public int ErrorCode {
get;
private set; }
37 protected override void GetEventData(Dictionary<string, object> data) {
38 data[
"error.code"] = ErrorCode;
39 data[
"error.level"] = Level.ToString().ToLowerInvariant();
40 data[
"error.message"] =
Error.Message;
41 data[
"error.stackTrace"] =
Error.StackTrace;
ErrorEvent(Exception error, int errorCode, ErrorLevel level)
override void GetEventData(Dictionary< string, object > data)
ErrorLevel
In case of error messages, this enumerates the level of severity of the error.