private static string GetServiceError(ExceptionServiceError serviceError) { switch (serviceError) { case ExceptionServiceError.OperationNotPossible: return "Operation not possible"; case ExceptionServiceError.OtherReason: return "Other reason"; case ExceptionServiceError.ServiceNotSupported: return "Service not supported"; } return string.Empty; }