2016-01-07 00:57:03 +03:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
|
|
wakatime.constants
|
|
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
Constant variable definitions.
|
|
|
|
|
|
|
|
:copyright: (c) 2016 Alan Hamlett.
|
|
|
|
:license: BSD, see LICENSE for more details.
|
|
|
|
"""
|
|
|
|
|
2016-09-02 11:50:54 +03:00
|
|
|
""" Success
|
|
|
|
Exit code used when a heartbeat was sent successfully.
|
|
|
|
"""
|
2016-01-07 00:57:03 +03:00
|
|
|
SUCCESS = 0
|
2016-09-02 11:50:54 +03:00
|
|
|
|
|
|
|
""" Api Error
|
|
|
|
Exit code used when the WakaTime API returned an error.
|
|
|
|
"""
|
2016-01-07 00:57:03 +03:00
|
|
|
API_ERROR = 102
|
2016-09-02 11:50:54 +03:00
|
|
|
|
|
|
|
""" Config File Parse Error
|
|
|
|
Exit code used when the ~/.wakatime.cfg config file could not be parsed.
|
|
|
|
"""
|
2016-01-07 00:57:03 +03:00
|
|
|
CONFIG_FILE_PARSE_ERROR = 103
|
2016-09-02 11:50:54 +03:00
|
|
|
|
|
|
|
""" Auth Error
|
|
|
|
Exit code used when our api key is invalid.
|
|
|
|
"""
|
2016-03-06 23:48:42 +03:00
|
|
|
AUTH_ERROR = 104
|
2016-09-02 11:50:54 +03:00
|
|
|
|
|
|
|
""" Unknown Error
|
|
|
|
Exit code used when there was an unhandled exception.
|
|
|
|
"""
|
2016-03-07 01:13:27 +03:00
|
|
|
UNKNOWN_ERROR = 105
|
2016-09-02 11:50:54 +03:00
|
|
|
|
|
|
|
""" Malformed Heartbeat Error
|
|
|
|
Exit code used when the JSON input from `--extra-heartbeats` is malformed.
|
|
|
|
"""
|
2016-04-29 01:04:46 +03:00
|
|
|
MALFORMED_HEARTBEAT_ERROR = 106
|