RemoteException.cs 514 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. namespace InABox.Clients
  4. {
  5. public class RemoteException : Exception
  6. {
  7. public StatusCode? Status;
  8. public RemoteException(IEnumerable<string> messages) : base(string.Join("\n", messages))
  9. {
  10. }
  11. public RemoteException(string message) : base(message)
  12. {
  13. }
  14. public RemoteException(string message, StatusCode statusCode) : base(message)
  15. {
  16. Status = statusCode;
  17. }
  18. }
  19. }