def __init__(self, origin, contents=None, details=None):
<EOL>if origin.failed:<EOL><INDENT>raise ValueError("<STR_LIT>".format(origin))<EOL><DEDENT>self.origin = origin<EOL>self.origin_id = origin.id<EOL>self.contents = contents<EOL>self.network_id = origin.network_id<EOL>self.network = origin.network<EOL>if details:<EOL><INDENT>self.details = details<EOL><DEDENT>
Create an info.