-
Notifications
You must be signed in to change notification settings - Fork 1
/
errors.py
29 lines (24 loc) · 1.08 KB
/
errors.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""
This file contains a bunch of errors frequently encountered throughout this project.
"""
###########################################################################################################################################################
class HyenaProjectException(Exception):
"""
Base error on which all others in this file are based.
"""
def __init__(self, message=None):
self.message = message
def __str__(self):
if self.message == None:
return ""
else:
return repr(message)
###########################################################################################################################################################
class TimeQueryError(HyenaProjectException):
"""
A query is made for time prior to beginning of accelerometer data recording, or after accelerometer data recording has ended.
"""
class CrawlerEncounteredNANsError(HyenaProjectException):
"""
Crawler fields contain NaNs.
"""