예제 #1
0
 public AuthenticationRequiredException(string msg) : base(msg, "ER401")
 {
     ExceptionData = new ExceptionModelBase()
     {
         Code    = "ER401",
         Message = msg
     };
     this.HttpStatus = System.Net.HttpStatusCode.Unauthorized;
 }
예제 #2
0
 public AppException(string msg = "Internal server Error", string code = "ER500", HttpStatusCode HttpStatus = HttpStatusCode.InternalServerError) : base(msg)
 {
     ExceptionData = new ExceptionModelBase()
     {
         Code    = code,
         Message = msg
     };
     HttpStatus = HttpStatusCode.InternalServerError;
 }
예제 #3
0
 public AppException(ExceptionModelData exceptionModel) : base(exceptionModel.Message)
 {
     ExceptionData = exceptionModel;
     HttpStatus    = HttpStatusCode.InternalServerError;
 }