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