None of this exceptions is currently covered by our tests, but I understand you just copy pasted this code.