def __init__(self, page, message=None):
    '\n        Initializer.\n\n        @param page: Page that caused the exception\n        @type page: Page object\n        '
    if message:
        self.message = message
    if (self.message is None):
        raise Error("PageRelatedError is abstract. Can't instantiate it!")
    self.page = page
    self.title = page.title(as_link=True)
    self.site = page.site
    if (('%(' in self.message) and (')s' in self.message)):
        super(PageRelatedError, self).__init__((self.message % self.__dict__))
    else:
        super(PageRelatedError, self).__init__((self.message % page))
Initializer.

@param page: Page that caused the exception
@type page: Page object
def __init__(self, page, message=None):
    '\n        Initializer.\n\n        @param page: Page that caused the exception\n        @type page: Page object\n        '
    if message:
        self.message = message
    if (self.message is None):
        raise Error("PageRelatedError is abstract. Can't instantiate it!")
    self.page = page
    self.title = page.title(as_link=True)
    self.site = page.site
    if (('%(' in self.message) and (')s' in self.message)):
        super(PageRelatedError, self).__init__((self.message % self.__dict__))
    else:
        super(PageRelatedError, self).__init__((self.message % page))