~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlms/errors.py

  • Committer: kaputtnik
  • Date: 2019-05-30 18:20:02 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: kaputtnik-20190530182002-g7l91m1xo28clghv
adjusted README; first commit on the new server

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# encoding: utf-8
3
 
 
4
 
__all__ = ["MSError", "MSCriticalError", "MSGarbageError"]
5
 
 
6
 
class MSError(Exception):
7
 
    def __init__(self, *args):
8
 
        self.args = args
9
 
class MSCriticalError(MSError):
10
 
    def __init__(self, *args):
11
 
        self.args = args
12
 
class MSGarbageError(MSCriticalError):
13
 
    def __init__(self, *args):
14
 
        MSCriticalError.__init__(self, "GARBAGE_RECEIVED", *args)
15
 
 
16