예제 #1
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     if (!string.IsNullOrEmpty(format))
     {
         Console.WriteLine(format, args);
     }
     else
     {
         Console.WriteLine($"{exception?.Message}; {error}");
     }
     _FastServer.Close();
 }
예제 #2
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     throw new NotSupportedException();
 }
예제 #3
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
 }
예제 #4
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     Console.WriteLine(format, args);
 }
예제 #5
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     throw new RepErrorException(exception, error, format, args);
 }
예제 #6
0
 public RepErrorException(Exception inner, RepError error, string format, params object[] args)
     : base(inner, format, args)
 {
     _error = error;
 }
예제 #7
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     throw new NotSupportedException();
 }
예제 #8
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     Console.WriteLine(format, args);
 }
예제 #9
0
 public static ErrorInfoAttribute GetErrorInfo(this RepError error)
 {
     return(Util.GetEnumSingleAttribute <ErrorInfoAttribute, RepError>(error));
 }
예제 #10
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
 }
예제 #11
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     throw new RepErrorException(exception, error, format, args);
 }
 public RepErrorException(Exception inner, RepError error, string format, params object[] args)
     : base(inner, format, args)
 {
     _error = error;
 }