File: error.py

package info (click to toggle)
mutatormath 3.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,820 kB
  • sloc: python: 2,581; makefile: 10
file content (12 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
# -*- coding: utf-8 -*-

""" 
    Mutator Error
"""

class MutatorError(Exception):
    def __init__(self, msg, obj=None):
        self.msg = msg
        self.obj = obj
    def __str__(self):
        return repr(self.msg) + repr(self.obj)