Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 public GEventException(EventType eventType, ErrorCode errorCode, Exception exception)
     : base(exception.Message, "GEvent")
 {
     this.bundle = new ErrorBundle(eventType, errorCode, exception);
 }
Exemplo n.º 4
0
 public GEventException(ErrorBundle erron)
     : base(erron.Description, "GEvent")
 {
     Assert.Null(erron);
     this.bundle = erron;
 }
Exemplo n.º 5
0
 public GEventException(EventType eventType, ErrorCode errorCode, string description = "") : base(description, "GEvent")
 {
     this.bundle = new ErrorBundle(eventType, errorCode, description);
 }