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