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(); }
public void OnError(Exception exception, RepError error, string format, params object[] args) { throw new NotSupportedException(); }
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); }
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; }
public static ErrorInfoAttribute GetErrorInfo(this RepError error) { return(Util.GetEnumSingleAttribute <ErrorInfoAttribute, RepError>(error)); }