Deque with error protection#6129

Deque with error protection (Discussion)