compose/fig/cli/errors.py

11 lines
217 B
Python
Raw Normal View History

from __future__ import absolute_import
2013-12-11 15:25:32 +01:00
from textwrap import dedent
class UserError(Exception):
def __init__(self, msg):
self.msg = dedent(msg).strip()
2014-01-15 13:01:17 +01:00
def __unicode__(self):
return self.msg