mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 08:31:59 +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
|
|
@ -0,0 +1,31 @@
|
|||
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
|
||||
# @author Simone Orsi <simahawk@gmail.com>
|
||||
|
||||
from odoo import exceptions as odoo_exceptions
|
||||
|
||||
|
||||
class RESTServiceDispatchException(Exception):
|
||||
|
||||
rest_json_info = {}
|
||||
|
||||
def __init__(self, message, log_entry_url):
|
||||
super().__init__(message)
|
||||
self.rest_json_info = {"log_entry_url": log_entry_url}
|
||||
|
||||
|
||||
class RESTServiceMissingErrorException(
|
||||
RESTServiceDispatchException, odoo_exceptions.MissingError
|
||||
):
|
||||
"""Missing error wrapped exception."""
|
||||
|
||||
|
||||
class RESTServiceUserErrorException(
|
||||
RESTServiceDispatchException, odoo_exceptions.UserError
|
||||
):
|
||||
"""User error wrapped exception."""
|
||||
|
||||
|
||||
class RESTServiceValidationErrorException(
|
||||
RESTServiceDispatchException, odoo_exceptions.ValidationError
|
||||
):
|
||||
"""Validation error wrapped exception."""
|
||||
Loading…
Add table
Add a link
Reference in a new issue