chop-dbhi / ehb-datasources

datasource drivers, e.g. REDCap and Nautilus, that can be plugged into the Biorepository Portal
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Handle driver exceptions more elegantly #8

Closed tjrivera closed 7 years ago

tjrivera commented 8 years ago

Currently comm issues with Nautilus will raise an Exception. These should be handled and appropriate feedback should be given to the user.

tjrivera commented 8 years ago

Naut-REST Errors to be mapped:

NAUTILUS_LOGIN_FAILURE = '1'
USERNAME_NOT_PROVIDED = '2'
PASSWORD_NOT_PROVIDED = '3'
REQUEST_TYPE_NOT_PROVIDED = '4'
REQUEST_BODY_NOT_PROVIDED = '5'
MALFORMED_REQUEST = '6'
UNSUPPORTED_REQUEST_TYPE = '7'
INVALID_LIMS_REQUEST_BODY = '8'
NAU_SOCKET_SERVICE_NOT_FOUND = '100'
NAU_INVALID_AUTH_HEADER= '101'
seg1129 commented 7 years ago

issue being tested in dev issue8-driver_exceptions #0f178f0

seg1129 commented 7 years ago

Issue resolved in version 1.0.4