File: exceptions.py

package info (click to toggle)
tryton-client 7.0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,472 kB
  • sloc: python: 27,196; sh: 37; makefile: 18
file content (15 lines) | stat: -rw-r--r-- 354 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This file is part of Tryton.  The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from .jsonrpc import Fault

TrytonServerError = Fault


class TrytonServerUnavailable(Exception):
    pass


class TrytonError(Exception):

    def __init__(self, faultCode):
        self.faultCode = faultCode