mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-20 12:52:04 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
41
odoo-bringout-oca-connector-connector/connector/exception.py
Normal file
41
odoo-bringout-oca-connector-connector/connector/exception.py
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# Copyright 2012 Camptocamp SA
|
||||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html)
|
||||
|
||||
from odoo.addons.queue_job.exception import JobError, RetryableJobError
|
||||
|
||||
# Connector related errors
|
||||
|
||||
|
||||
class ConnectorException(Exception):
|
||||
"""Base Exception for the connectors"""
|
||||
|
||||
|
||||
class NoConnectorUnitError(ConnectorException):
|
||||
"""No ConnectorUnit has been found"""
|
||||
|
||||
|
||||
class InvalidDataError(ConnectorException):
|
||||
"""Data Invalid"""
|
||||
|
||||
|
||||
# Job related errors
|
||||
|
||||
|
||||
class MappingError(ConnectorException):
|
||||
"""An error occurred during a mapping transformation."""
|
||||
|
||||
|
||||
class NetworkRetryableError(RetryableJobError):
|
||||
"""A network error caused the failure of the job, it can be retried later."""
|
||||
|
||||
|
||||
class NoExternalId(RetryableJobError):
|
||||
"""No External ID found, it can be retried later."""
|
||||
|
||||
|
||||
class IDMissingInBackend(JobError):
|
||||
"""The ID does not exist in the backend"""
|
||||
|
||||
|
||||
class ManyIDSInBackend(JobError):
|
||||
"""Unique key exists many times in backend"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue