pyUSIrest.exceptions   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 25
rs 10
c 0
b 0
f 0
wmc 0
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
"""
4
Created on Fri Jan 10 16:44:49 2020
5
6
@author: Paolo Cozzi <[email protected]>
7
"""
8
9
10
class TokenExpiredError(RuntimeError):
11
    """Raised when token expires while using pyUSIrest"""
12
13
14
class NotReadyError(RuntimeError):
15
    """Raised when doing stuff on not ready data (ex finalizing a Submission
16
    after validation)"""
17
18
19
class USIConnectionError(ConnectionError):
20
    """Deal with connection issues with API"""
21
22
23
class USIDataError(Exception):
24
    """Deal with issues in USI data format"""
25