Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions mapr/ojai/storage/OJAIConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from mapr.ojai.exceptions.ConnectionError import ConnectionError
from mapr.ojai.exceptions.IllegalArgumentError import IllegalArgumentError
from mapr.ojai.exceptions.PathNotFoundError import PathNotFoundError
from mapr.ojai.exceptions.AccessDeniedError import AccessDeniedError
from mapr.ojai.exceptions.StoreAlreadyExistsError import StoreAlreadyExistsError
from mapr.ojai.exceptions.StoreNotFoundError import StoreNotFoundError
from mapr.ojai.exceptions.UnknownServerError import UnknownServerError
Expand Down Expand Up @@ -211,6 +212,8 @@ def __validate_response(response):
raise StoreAlreadyExistsError(m=response.error.error_message)
elif response.error.err_code == ErrorCode.Value('PATH_NOT_FOUND'):
raise PathNotFoundError(m=response.error.error_message)
elif response.error.err_code == ErrorCode.Value('ACCESS_DENIED'):
raise AccessDeniedError(m=response.error.error_message)
elif response.error.err_code == ErrorCode.Value('TABLE_NOT_FOUND'):
return False
else:
Expand Down