public void _Error(GEventException gexception) { status = StatusEnum.Error; error = gexception.Bundle; Logger.Default.ErrorNoThrow("Quest.Error: " + error.ToString()); if (OnError != null) { _SendResponse((quest) => OnError(quest, error), Response.TypeEnum.Error); } else { _NullResponse(Response.TypeEnum.Error); } }
public void _Error(string Message, ErrorCode code = ErrorCode.Undefined) { //Log status = StatusEnum.Error; error = new ErrorBundle(EventType, code, new BaseException(Message, "GEvent")); Logger.Default.ErrorNoThrow("Quest.Error: " + error.ToString()); if (OnError != null) { _SendResponse((quest) => OnError(quest, error), Response.TypeEnum.Error); } else { _NullResponse(Response.TypeEnum.Error); } }
public GEventException(EventType eventType, ErrorCode errorCode, Exception exception) : base(exception.Message, "GEvent") { this.bundle = new ErrorBundle(eventType, errorCode, exception); }
public GEventException(ErrorBundle erron) : base(erron.Description, "GEvent") { Assert.Null(erron); this.bundle = erron; }
public GEventException(EventType eventType, ErrorCode errorCode, string description = "") : base(description, "GEvent") { this.bundle = new ErrorBundle(eventType, errorCode, description); }