Raise exception in formatter