Save the error in a public var from the constructor.