Exemple #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();
 }
Exemple #2
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     throw new NotSupportedException();
 }
Exemple #3
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
 }
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     Console.WriteLine(format, args);
 }
Exemple #5
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     throw new RepErrorException(exception, error, format, args);
 }
Exemple #6
0
 public RepErrorException(Exception inner, RepError error, string format, params object[] args)
     : base(inner, format, args)
 {
     _error = error;
 }
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     throw new NotSupportedException();
 }
Exemple #8
0
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
     Console.WriteLine(format, args);
 }
Exemple #9
0
 public static ErrorInfoAttribute GetErrorInfo(this RepError error)
 {
     return(Util.GetEnumSingleAttribute <ErrorInfoAttribute, RepError>(error));
 }
 public void OnError(Exception exception, RepError error, string format, params object[] args)
 {
 }
 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;
 }