1
0
mirror of synced 2026-01-17 21:02:47 -05:00
Files
airbyte/airbyte-integrations/connectors/source-netsuite/source_netsuite/errors.py
Cole Snodgrass 2e099acc52 update headers from 2022 -> 2023 (#22594)
* It's 2023!

* 2022 -> 2023

---------

Co-authored-by: evantahler <evan@airbyte.io>
2023-02-08 13:01:16 -08:00

22 lines
633 B
Python

#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
# NETSUITE ERROR CODES BY THEIR HTTP TWINS
NETSUITE_ERRORS_MAPPING: dict = {
400: {
"USER_ERROR": "reading an Admin record allowed for Admin only",
"NONEXISTENT_FIELD": "cursor_field declared in schema but doesn't exist in object",
"INVALID_PARAMETER": "cannot read or find the object. Skipping",
},
403: {
"INSUFFICIENT_PERMISSION": "not enough permissions to access the object",
},
}
# NETSUITE API ERRORS EXCEPTIONS
class DateFormatExeption(Exception):
"""API CANNOT HANDLE REQUEST USING GIVEN DATETIME FORMAT"""