Пример #1
0
 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);
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
 public GEventException(EventType eventType, ErrorCode errorCode, Exception exception)
     : base(exception.Message, "GEvent")
 {
     this.bundle = new ErrorBundle(eventType, errorCode, exception);
 }
Пример #4
0
 public GEventException(ErrorBundle erron)
     : base(erron.Description, "GEvent")
 {
     Assert.Null(erron);
     this.bundle = erron;
 }
Пример #5
0
 public GEventException(EventType eventType, ErrorCode errorCode, string description = "") : base(description, "GEvent")
 {
     this.bundle = new ErrorBundle(eventType, errorCode, description);
 }