@classmethod
def from_exception(cls, exception):
    """Instanciate the class with the given exception."""
    name = type(exception).__name__
    value = str(exception)
    return cls('%s: %s' % (name, value) if value else name)
