2018-03-11 15:34:41 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim:fenc=utf-8
|
|
|
|
#
|
|
|
|
# Copyright © 2017 lafrite <lafrite@Poivre>
|
|
|
|
#
|
|
|
|
# Distributed under terms of the MIT license.
|
|
|
|
|
|
|
|
"""
|
|
|
|
Exceptions for computing
|
|
|
|
"""
|
|
|
|
|
2019-05-14 04:55:56 +00:00
|
|
|
|
2018-03-11 15:34:41 +00:00
|
|
|
class ComputeError(Exception):
|
|
|
|
pass
|
|
|
|
|
2019-05-14 04:55:56 +00:00
|
|
|
|
2018-03-11 15:34:41 +00:00
|
|
|
class AddError(ComputeError):
|
|
|
|
pass
|
|
|
|
|
2019-05-14 04:55:56 +00:00
|
|
|
|
2018-03-12 16:27:01 +00:00
|
|
|
class MinusError(ComputeError):
|
|
|
|
pass
|
|
|
|
|
2019-05-14 04:55:56 +00:00
|
|
|
|
2018-03-11 17:05:17 +00:00
|
|
|
class MultiplyError(ComputeError):
|
|
|
|
pass
|
|
|
|
|
2019-05-14 04:55:56 +00:00
|
|
|
|
2018-03-13 11:43:48 +00:00
|
|
|
class DivideError(ComputeError):
|
|
|
|
pass
|
|
|
|
|
2018-03-11 15:34:41 +00:00
|
|
|
|
|
|
|
# -----------------------------
|
|
|
|
# Reglages pour 'vim'
|
|
|
|
# vim:set autoindent expandtab tabstop=4 shiftwidth=4:
|
|
|
|
# cursor: 16 del
|