Skip to content

Commit

Permalink
new exceptions: ActionRevisionsDisabled and RevisionListNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Oct 12, 2024
1 parent f28b36a commit f63254e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion dokuWikiDumper/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,28 @@ def __init__(self, title):
def __str__(self):
return "Action: edit: textarea not found for [[%s]]" % self.title


class ActionExportHtmlDisabled(Exception):
def __init__(self, title):
self.title = title

def __str__(self):
return "Action: export_xhtml is disabled for [[%s]]" % self.title
return "Action: export_xhtml is disabled for [[%s]]" % self.title


class ActionRevisionsDisabled(Exception):
def __init__(self, title):
self.title = title

def __str__(self):
return "Action: revisions is disabled for [[%s]]" % self.title


class RevisionListNotFound(Exception):
def __init__(self, title):
self.title = title

def __str__(self):
return "Revision list not found for [[%s]]" % self.title


0 comments on commit f63254e

Please sign in to comment.