class MiExcepcion(Exception): def __init__(self, valor): self.valor = valor def __str__(self): return repr(self.valor)