def as_dict(self, join='<STR_LIT:.>'):
if self.path:<EOL><INDENT>path = [str(node) for node in self.path]<EOL><DEDENT>else:<EOL><INDENT>path = '<STR_LIT>'<EOL><DEDENT>return { join.join(path): self.message }<EOL>
Returns the error as a path to message dictionary. Paths are joined
with the ``join`` string.