blob: c0cf1e71caaa17c2fde36e65d7e159578074a933 [file] [log] [blame]
Sylvain Munaut76504e02010-12-07 00:24:32 +01001# -*- coding: utf-8 -*-
2
3""" pySim: Exceptions
4"""
5
6#
7# Copyright (C) 2009-2010 Sylvain Munaut <tnt@246tNt.com>
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 2 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>.
21#
22
23from __future__ import absolute_import
24
Denis 'GNUtoo' Carikli8902bcd2019-09-12 15:03:23 +020025try:
26 # This is for compatibility with python 2 and 3
27 from exceptions import Exception
28except:
Sylvain Munaut76504e02010-12-07 00:24:32 +010029 pass
30
Denis 'GNUtoo' Carikli8902bcd2019-09-12 15:03:23 +020031class NoCardError(Exception):
Sylvain Munaut76504e02010-12-07 00:24:32 +010032 pass
Vadim Yanitskiy1381ff12018-10-27 01:48:15 +070033
Denis 'GNUtoo' Carikli8902bcd2019-09-12 15:03:23 +020034class ProtocolError(Exception):
35 pass
36
37class ReaderError(Exception):
Vadim Yanitskiy1381ff12018-10-27 01:48:15 +070038 pass